diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-22 16:18:56 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-22 16:18:56 +0000 |
commit | d37cfffd537cd29309afbcb192c4f979995c6a34 (patch) | |
tree | 054c2cbb701f8060549600e81fa77e8cfa115d70 /modules/ui.py | |
parent | 7fd90128eb6d1820045bfe2c2c1269661023a712 (diff) | |
download | stable-diffusion-webui-gfx803-d37cfffd537cd29309afbcb192c4f979995c6a34.tar.gz stable-diffusion-webui-gfx803-d37cfffd537cd29309afbcb192c4f979995c6a34.tar.bz2 stable-diffusion-webui-gfx803-d37cfffd537cd29309afbcb192c4f979995c6a34.zip |
added callback for creating new settings in extensions
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index d8d52db1..2849b111 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1461,6 +1461,9 @@ def create_ui(wrap_gradio_gpu_call): components = []
component_dict = {}
+ script_callbacks.ui_settings_callback()
+ opts.reorder()
+
def open_folder(f):
if not os.path.exists(f):
print(f'Folder "{f}" does not exist. After you create an image, the folder will be created.')
@@ -1564,7 +1567,8 @@ Requested path was: {f} previous_section = item.section
- gr.HTML(elem_id="settings_header_text_{}".format(item.section[0]), value='<h1 class="gr-button-lg">{}</h1>'.format(item.section[1]))
+ elem_id, text = item.section
+ gr.HTML(elem_id="settings_header_text_{}".format(elem_id), value='<h1 class="gr-button-lg">{}</h1>'.format(text))
if k in quicksettings_names:
quicksettings_list.append((i, k, item))
|