Add setting to adjust queue MaxHistoryItems (#1689)

* Add MaxHistoryItems

* nit
This commit is contained in:
Chenlei Hu
2024-11-25 15:49:40 -08:00
committed by GitHub
parent 23521559bf
commit adfbec2744
2 changed files with 19 additions and 0 deletions

View File

@@ -642,5 +642,18 @@ export const CORE_SETTINGS: SettingParams[] = [
type: 'hidden',
defaultValue: {} as Record<string, string>,
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'
}
]

View File

@@ -97,6 +97,12 @@ watchEffect(() => {
}
})
watchEffect(() => {
useQueueStore().maxHistoryItems = settingStore.get(
'Comfy.Queue.MaxHistoryItems'
)
})
const init = () => {
settingStore.addSettings(app.ui.settings)
useKeybindingStore().loadCoreKeybindings()