Skip to content

Commit

Permalink
fix issue with config quicksettings
Browse files Browse the repository at this point in the history
  • Loading branch information
anapnoe committed May 15, 2023
1 parent 1e614d2 commit 27f5f3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ def list_samplers():
"keyedit_precision_attention": OptionInfo(0.1, "Ctrl+up/down precision when editing (attention:1.1)", gr.Slider, {"minimum": 0.01, "maximum": 0.2, "step": 0.001}),
"keyedit_precision_extra": OptionInfo(0.05, "Ctrl+up/down precision when editing <extra networks:0.9>", gr.Slider, {"minimum": 0.01, "maximum": 0.2, "step": 0.001}),
"keyedit_delimiters": OptionInfo(".,\\/!?%^*;:{}=`~()", "Ctrl+up/down word delimiters"),
#"quicksettings_list": OptionInfo(["sd_model_checkpoint"], "Quicksettings list", ui_components.DropdownMulti, lambda: {"choices": list(opts.data_labels.keys())}),
"quicksettings": OptionInfo(["sd_model_checkpoint"], "Quicksettings list"),
"quicksettings_list": OptionInfo(["sd_model_checkpoint"], "Quicksettings list", ui_components.DropdownMulti, lambda: {"choices": list(opts.data_labels.keys())}),
"quicksettings": OptionInfo("sd_model_checkpoint", "Quicksettings"),
"hidden_tabs": OptionInfo([], "Hidden UI tabs (requires restart)", ui_components.DropdownMulti, lambda: {"choices": [x for x in tab_names]}),
"ui_reorder": OptionInfo(", ".join(ui_reorder_categories), "txt2img/img2img UI item order"),
"ui_hidden_tabs": OptionInfo("", "Hidden Tabs"),
Expand Down
4 changes: 2 additions & 2 deletions modules/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,8 @@ def run_settings_single(value, key):

result = gr.HTML(elem_id="settings_result")

quicksettings_names = opts.quicksettings_list
#quicksettings_names = opts.quicksettings_list
quicksettings_names = [x.strip() for x in opts.quicksettings.split(",")]
quicksettings_names = {x: i for i, x in enumerate(quicksettings_names) if x != 'quicksettings'}

quicksettings_list = []
Expand Down Expand Up @@ -1678,7 +1679,6 @@ def run_settings_single(value, key):

gr.Button(value="Show all pages", elem_id="settings_show_all_pages")


def unload_sd_weights():
modules.sd_models.unload_model_weights()

Expand Down

0 comments on commit 27f5f3b

Please sign in to comment.