diff --git a/src/extensions/core/electronAdapter.ts b/src/extensions/core/electronAdapter.ts index 2b3b2f018c..5220a14fb1 100644 --- a/src/extensions/core/electronAdapter.ts +++ b/src/extensions/core/electronAdapter.ts @@ -1,6 +1,7 @@ import { t } from '@/i18n' import { app } from '@/scripts/app' import { useDialogService } from '@/services/dialogService' +import { useSettingStore } from '@/stores/settingStore' import { useWorkflowStore } from '@/stores/workflowStore' import { electronAPI as getElectronAPI, isElectron } from '@/utils/envUtil' @@ -41,18 +42,18 @@ import { electronAPI as getElectronAPI, isElectron } from '@/utils/envUtil' id: 'Comfy-Desktop.WindowStyle', category: ['Comfy-Desktop', 'General', 'Window Style'], name: 'Window Style', - tooltip: 'Choose custom option to hide the system title bar', + tooltip: "Custom: Replace the system title bar with ComfyUI's Top menu", type: 'combo', experimental: true, defaultValue: 'default', options: ['default', 'custom'], onChange: ( newValue: 'default' | 'custom', - oldValue: 'default' | 'custom' + oldValue?: 'default' | 'custom' ) => { - electronAPI.Config.setWindowStyle(newValue) + if (!oldValue) return - onChangeRestartApp(newValue, oldValue) + electronAPI.Config.setWindowStyle(newValue) } } ], diff --git a/src/locales/en/settings.json b/src/locales/en/settings.json index 4c7929cadb..91a7e47011 100644 --- a/src/locales/en/settings.json +++ b/src/locales/en/settings.json @@ -7,7 +7,7 @@ }, "Comfy-Desktop_WindowStyle": { "name": "Window Style", - "tooltip": "Choose custom option to hide the system title bar", + "tooltip": "Custom: Replace the system title bar with ComfyUI's Top menu", "options": { "default": "default", "custom": "custom"