Organize setting display for new settings dialog (#507)

This commit is contained in:
Chenlei Hu
2024-08-18 11:31:50 -04:00
committed by GitHub
parent 17aa44d9f6
commit ec5f1152da
4 changed files with 5 additions and 16 deletions

View File

@@ -401,7 +401,7 @@ export class ComfyUI {
this.settings.addSetting({
id: 'Comfy.DisableSliders',
name: 'Disable sliders.',
name: 'Disable node widget sliders',
type: 'boolean',
defaultValue: false
})
@@ -746,9 +746,9 @@ export class ComfyUI {
})
]) as HTMLDivElement
const devMode = this.settings.addSetting({
this.settings.addSetting({
id: 'Comfy.DevMode',
name: 'Enable Dev mode Options',
name: 'Enable dev mode options (API save, etc.)',
type: 'boolean',
defaultValue: false,
onChange: function (value) {

View File

@@ -347,12 +347,10 @@ function isSlider(display, app) {
export function initWidgets(app) {
app.ui.settings.addSetting({
id: 'Comfy.WidgetControlMode',
name: 'Widget Value Control Mode',
name: 'Controls when widget values are updated (randomize/increment/decrement), either before the prompt is queued or after.',
type: 'combo',
defaultValue: 'after',
options: ['before', 'after'],
tooltip:
'Controls when widget values are updated (randomize/increment/decrement), either before the prompt is queued or after.',
onChange(value) {
controlValueRunBefore = value === 'before'
for (const n of app.graph._nodes) {