aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-31 14:36:45 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-31 14:37:02 +0000
commit910a097ae2ed78a62101951f1b87137f9e1baaea (patch)
tree3157c84132729023031c42aebcba4ea9a964dbd1 /modules/shared.py
parent9b384dfb5c05129f50cc3f0262f89e8b788e5cf3 (diff)
downloadstable-diffusion-webui-gfx803-910a097ae2ed78a62101951f1b87137f9e1baaea.tar.gz
stable-diffusion-webui-gfx803-910a097ae2ed78a62101951f1b87137f9e1baaea.tar.bz2
stable-diffusion-webui-gfx803-910a097ae2ed78a62101951f1b87137f9e1baaea.zip
add initial version of the extensions tab
fix broken Restart Gradio button
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py
index e4f163c1..cce87081 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -132,6 +132,7 @@ class State:
current_image = None
current_image_sampling_step = 0
textinfo = None
+ need_restart = False
def skip(self):
self.skipped = True
@@ -354,6 +355,12 @@ options_templates.update(options_section(('sampler-params', "Sampler parameters"
'eta_noise_seed_delta': OptionInfo(0, "Eta noise seed delta", gr.Number, {"precision": 0}),
}))
+options_templates.update(options_section((None, "Hidden options"), {
+ "disabled_extensions": OptionInfo([], "Disable those extensions"),
+}))
+
+options_templates.update()
+
class Options:
data = None
@@ -365,8 +372,9 @@ class Options:
def __setattr__(self, key, value):
if self.data is not None:
- if key in self.data:
+ if key in self.data or key in self.data_labels:
self.data[key] = value
+ return
return super(Options, self).__setattr__(key, value)