Fix toggle config using capitalised boolean value.
This commit is contained in:
parent
e08c6cb059
commit
573c25073d
@ -734,7 +734,7 @@ class ConfigManager(QObject):
|
||||
val = self.get(section_, option)
|
||||
layer = 'temp' if temp else 'conf'
|
||||
if isinstance(val, bool):
|
||||
self.set(layer, section_, option, str(not val))
|
||||
self.set(layer, section_, option, str(not val).lower())
|
||||
else:
|
||||
raise cmdexc.CommandError(
|
||||
"set: Attempted inversion of non-boolean value.")
|
||||
|
Loading…
Reference in New Issue
Block a user