summaryrefslogtreecommitdiff
path: root/lib/extensions/params.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2019-07-28 10:02:28 +0200
committerGitHub <noreply@github.com>2019-07-28 10:02:28 +0200
commitd5e873f8c50789b94e24d27a30c72f65ba9c08a3 (patch)
treeffa31c0f808f67857cdf7f86ecd2a9da41590a06 /lib/extensions/params.py
parent833a8a971d8a73fbc42468a89d083e37a0bd6d8d (diff)
parente81e819602a3823ec344d412ba2e5213349fb2c4 (diff)
Merge pull request #481
show various bugs the door
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,