diff --git a/src/constants/coreSettings.ts b/src/constants/coreSettings.ts index d0fdfbed4..12f1bc146 100644 --- a/src/constants/coreSettings.ts +++ b/src/constants/coreSettings.ts @@ -642,5 +642,18 @@ export const CORE_SETTINGS: SettingParams[] = [ type: 'hidden', defaultValue: {} as Record, versionAdded: '1.4.8' + }, + { + id: 'Comfy.Queue.MaxHistoryItems', + name: 'Queue history size', + tooltip: 'The maximum number of tasks that show in the queue history.', + type: 'slider', + attrs: { + min: 16, + max: 256, + step: 16 + }, + defaultValue: 64, + versionAdded: '1.4.12' } ] diff --git a/src/views/GraphView.vue b/src/views/GraphView.vue index 498a45c25..ac9fee9d5 100644 --- a/src/views/GraphView.vue +++ b/src/views/GraphView.vue @@ -97,6 +97,12 @@ watchEffect(() => { } }) +watchEffect(() => { + useQueueStore().maxHistoryItems = settingStore.get( + 'Comfy.Queue.MaxHistoryItems' + ) +}) + const init = () => { settingStore.addSettings(app.ui.settings) useKeybindingStore().loadCoreKeybindings()