aboutsummaryrefslogtreecommitdiff
path: root/modules/options.py
diff options
context:
space:
mode:
authorKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-11-26 17:32:52 +0800
committerKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-11-26 17:32:52 +0800
commit3d341ebc7dcb44df3b4c013b3805c08d8a35e24a (patch)
tree3152f9087cdb2a9b48310aca3189d8cc235ffa51 /modules/options.py
parent40ac134c553ac824d4a96666bba14d550300daa5 (diff)
parente44103264d95a2141410571661c757a65f22a8b6 (diff)
Merge branch 'dev' into test-fp8
Diffstat (limited to 'modules/options.py')
-rw-r--r--modules/options.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/options.py b/modules/options.py
index ab40aff7..7703d80e 100644
--- a/modules/options.py
+++ b/modules/options.py
@@ -76,7 +76,7 @@ class Options:
def __init__(self, data_labels: dict[str, OptionInfo], restricted_opts):
self.data_labels = data_labels
- self.data = {k: v.default for k, v in self.data_labels.items()}
+ self.data = {k: v.default for k, v in self.data_labels.items() if not v.do_not_save}
self.restricted_opts = restricted_opts
def __setattr__(self, key, value):
@@ -210,7 +210,7 @@ class Options:
def add_option(self, key, info):
self.data_labels[key] = info
- if key not in self.data:
+ if key not in self.data and not info.do_not_save:
self.data[key] = info.default
def reorder(self):