mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Fix for bug that rejects extraneous spaces in Boolean registry values.
This commit is contained in:
parent
22d484ef01
commit
59e5a6bc9f
@ -236,7 +236,7 @@ class Value(Group):
|
|||||||
|
|
||||||
class Boolean(Value):
|
class Boolean(Value):
|
||||||
def set(self, s):
|
def set(self, s):
|
||||||
s = s.lower()
|
s = s.strip().lower()
|
||||||
if s in ('true', 'on', 'enable', 'enabled'):
|
if s in ('true', 'on', 'enable', 'enabled'):
|
||||||
value = True
|
value = True
|
||||||
elif s in ('false', 'off', 'disable', 'disabled'):
|
elif s in ('false', 'off', 'disable', 'disabled'):
|
||||||
|
Loading…
Reference in New Issue
Block a user