mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): use pubsub to for globalcontextmenuclose
Far more efficient than the crude redux incrementor thing.
This commit is contained in:
committed by
Kent Keirsey
parent
bd92a31d15
commit
2ba505cce9
@@ -22,11 +22,12 @@ const WorkflowLibraryMenu = () => {
|
||||
const { t } = useTranslation();
|
||||
const { isOpen, onOpen, onClose } = useDisclosure();
|
||||
useGlobalMenuCloseTrigger(onClose);
|
||||
|
||||
const isWorkflowLibraryEnabled =
|
||||
useFeatureStatus('workflowLibrary').isFeatureEnabled;
|
||||
|
||||
return (
|
||||
<InvMenu isOpen={isOpen} onOpen={onOpen} onClose={onClose}>
|
||||
<InvMenu isOpen={isOpen} onOpen={onOpen} onClose={onClose} isLazy>
|
||||
<InvMenuButton
|
||||
as={InvIconButton}
|
||||
aria-label={t('workflows.workflowEditorMenu')}
|
||||
|
||||
Reference in New Issue
Block a user