[Refactor] Extract top menu bar command definitions (#1778)

This commit is contained in:
Chenlei Hu
2024-12-03 17:17:15 -08:00
committed by GitHub
parent 0fe0aea242
commit 9cbcda20a7
4 changed files with 65 additions and 43 deletions

View File

@@ -39,6 +39,7 @@ import { useBottomPanelStore } from '@/stores/workspace/bottomPanelStore'
import { useModelStore } from '@/stores/modelStore'
import { useServerConfigStore } from '@/stores/serverConfigStore'
import { SERVER_CONFIG_ITEMS } from '@/constants/serverConfig'
import { useMenuItemStore } from '@/stores/menuItemStore'
setupAutoQueueHandler()
@@ -104,6 +105,7 @@ watchEffect(() => {
const init = () => {
settingStore.addSettings(app.ui.settings)
useMenuItemStore().registerCoreMenuCommands()
useKeybindingStore().loadCoreKeybindings()
useSidebarTabStore().registerCoreSidebarTabs()
useBottomPanelStore().registerCoreBottomPanelTabs()