aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-22 16:18:56 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-22 16:18:56 +0000
commitd37cfffd537cd29309afbcb192c4f979995c6a34 (patch)
tree054c2cbb701f8060549600e81fa77e8cfa115d70 /modules/ui.py
parent7fd90128eb6d1820045bfe2c2c1269661023a712 (diff)
downloadstable-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.py6
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))