diff --git a/modules/shared.py b/modules/shared.py index a68e2b22847..01cdd585f2c 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -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 ", 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"), diff --git a/modules/ui.py b/modules/ui.py index 3ebab0f86cb..2983b1202e2 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -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 = [] @@ -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()