mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
Add setting to adjust queue MaxHistoryItems (#1689)
* Add MaxHistoryItems * nit
This commit is contained in:
@@ -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'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -97,6 +97,12 @@ watchEffect(() => {
|
||||
}
|
||||
})
|
||||
|
||||
watchEffect(() => {
|
||||
useQueueStore().maxHistoryItems = settingStore.get(
|
||||
'Comfy.Queue.MaxHistoryItems'
|
||||
)
|
||||
})
|
||||
|
||||
const init = () => {
|
||||
settingStore.addSettings(app.ui.settings)
|
||||
useKeybindingStore().loadCoreKeybindings()
|
||||
|
||||
Reference in New Issue
Block a user