Skip to content

Commit

Permalink
Merge pull request #12854 from catboxanon/fix/quicksettings-dropdown-…
Browse files Browse the repository at this point in the history
…unfocus

Do not change quicksettings dropdown option when value returned is `None`
  • Loading branch information
AUTOMATIC1111 committed Aug 30, 2023
1 parent 323dcad commit 46f3ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ui_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def run_settings_single(self, value, key):
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)
Expand Down

0 comments on commit 46f3ee9

Please sign in to comment.