Commit e3939f33 authored by catboxanon's avatar catboxanon

Do not change quicksettings value when value returned is `None`

parent 04b90328
...@@ -87,7 +87,7 @@ class UiSettings: ...@@ -87,7 +87,7 @@ class UiSettings:
if not opts.same_type(value, opts.data_labels[key].default): if not opts.same_type(value, opts.data_labels[key].default):
return gr.update(visible=True), opts.dumpjson() 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() return gr.update(value=getattr(opts, key)), opts.dumpjson()
opts.save(shared.config_filename) opts.save(shared.config_filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment