aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_settings.py
diff options
context:
space:
mode:
authorcatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-29 16:19:10 +0000
committercatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-29 16:19:10 +0000
commite3939f33394de31594f7c459a7bd352d206f7669 (patch)
tree92d449755172e11d76ee7ada981c55c957f2af6b /modules/ui_settings.py
parent04b90328c0aa86670cfe5d31612d341e29b5a258 (diff)
downloadstable-diffusion-webui-gfx803-e3939f33394de31594f7c459a7bd352d206f7669.tar.gz
stable-diffusion-webui-gfx803-e3939f33394de31594f7c459a7bd352d206f7669.tar.bz2
stable-diffusion-webui-gfx803-e3939f33394de31594f7c459a7bd352d206f7669.zip
Do not change quicksettings value when value returned is `None`
Diffstat (limited to 'modules/ui_settings.py')
-rw-r--r--modules/ui_settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_settings.py b/modules/ui_settings.py
index 6dde4b6a..8ff9c074 100644
--- a/modules/ui_settings.py
+++ b/modules/ui_settings.py
@@ -87,7 +87,7 @@ class UiSettings:
if not opts.same_type(value, opts.data_labels[key].default):
return gr.update(visible=True), opts.dumpjson()
- if not opts.set(key, value):
+ if value is None or not opts.set(key, value):
return gr.update(value=getattr(opts, key)), opts.dumpjson()
opts.save(shared.config_filename)