disable filemanager when isInpainting
This commit is contained in:
parent
7374a5127f
commit
209a3361d5
@ -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)
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user