call script_callbacks.ui_settings_callback earlier; fix extra-options-section built-in extension killing the ui if using a setting that doesn't exist

This commit is contained in:
AUTOMATIC1111
2024-03-04 15:30:46 +03:00
parent 92d77e3fa8
commit 0dc12861ef
3 changed files with 12 additions and 4 deletions

View File

@@ -98,6 +98,9 @@ class UiSettings:
return get_value_for_setting(key), opts.dumpjson()
def register_settings(self):
script_callbacks.ui_settings_callback()
def create_ui(self, loadsave, dummy_component):
self.components = []
self.component_dict = {}
@@ -105,7 +108,6 @@ class UiSettings:
shared.settings_components = self.component_dict
script_callbacks.ui_settings_callback()
opts.reorder()
with gr.Blocks(analytics_enabled=False) as settings_interface: