summaryrefslogtreecommitdiff
path: root/lib/extensions/params.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions/params.py')
-rw-r--r--lib/extensions/params.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index 4d04ba23..a3ba7784 100644
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -138,8 +138,11 @@ class ParamsTab(ScrolledPanel):
if self.toggle:
checked = self.enabled()
- if self.toggle_checkbox in self.changed_inputs and not self.toggle.inverse:
- values[self.toggle.name] = checked
+ if self.toggle_checkbox in self.changed_inputs:
+ if self.toggle.inverse:
+ values[self.toggle.name] = not checked
+ else:
+ values[self.toggle.name] = checked
if not checked:
# Ignore params on this tab if the toggle is unchecked,