mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +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',
|
type: 'hidden',
|
||||||
defaultValue: {} as Record<string, string>,
|
defaultValue: {} as Record<string, string>,
|
||||||
versionAdded: '1.4.8'
|
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 = () => {
|
const init = () => {
|
||||||
settingStore.addSettings(app.ui.settings)
|
settingStore.addSettings(app.ui.settings)
|
||||||
useKeybindingStore().loadCoreKeybindings()
|
useKeybindingStore().loadCoreKeybindings()
|
||||||
|
|||||||
Reference in New Issue
Block a user