aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorcatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-29 12:19:10 -0400
committercatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-29 12:19:10 -0400
commite3939f33394de31594f7c459a7bd352d206f7669 (patch)
tree92d449755172e11d76ee7ada981c55c957f2af6b /modules
parent04b90328c0aa86670cfe5d31612d341e29b5a258 (diff)
Do not change quicksettings value when value returned is `None`
Diffstat (limited to 'modules')
-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)