disable filemanager when isInpainting

This commit is contained in:
Qing 2023-01-07 22:00:20 +08:00
parent 7374a5127f
commit 209a3361d5

View File

@ -39,12 +39,12 @@ const Header = () => {
useHotKey( useHotKey(
'f', 'f',
() => { () => {
if (enableFileManager) { if (enableFileManager && !isInpainting) {
setShowFileManager(!showFileManager) setShowFileManager(!showFileManager)
} }
}, },
{}, {},
[showFileManager, enableFileManager] [showFileManager, enableFileManager, isInpainting]
) )
const renderHeader = () => { const renderHeader = () => {
@ -63,6 +63,7 @@ const Header = () => {
icon={<FolderIcon />} icon={<FolderIcon />}
style={{ border: 0 }} style={{ border: 0 }}
toolTip="Open File Manager" toolTip="Open File Manager"
disabled={isInpainting}
onClick={() => { onClick={() => {
setShowFileManager(true) setShowFileManager(true)
}} }}