mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 18:24:11 +00:00
Move setting impl from ComfySettingsDialog to settingStore (#2085)
This commit is contained in:
@@ -94,7 +94,7 @@ watchEffect(() => {
|
||||
watchEffect(() => {
|
||||
const useNewMenu = settingStore.get('Comfy.UseNewMenu')
|
||||
if (useNewMenu === 'Disabled') {
|
||||
app.ui.menuContainer.style.removeProperty('display')
|
||||
app.ui.menuContainer.style.setProperty('display', 'block')
|
||||
app.ui.restoreMenuPosition()
|
||||
} else {
|
||||
app.ui.menuContainer.style.setProperty('display', 'none')
|
||||
@@ -108,7 +108,6 @@ watchEffect(() => {
|
||||
})
|
||||
|
||||
const init = () => {
|
||||
settingStore.addSettings(app.ui.settings)
|
||||
const coreCommands = useCoreCommands()
|
||||
useCommandStore().registerCommands(coreCommands)
|
||||
useMenuItemStore().registerCoreMenuCommands()
|
||||
|
||||
Reference in New Issue
Block a user