Fix logic bug, bool('False') in fact equals True é_è

This commit is contained in:
Alexandre Aubin 2022-08-04 22:03:06 +02:00
parent 9482373e90
commit 7f45b3890e

View file

@ -136,7 +136,7 @@ class SettingsConfigPanel(ConfigPanel):
# Dirty hack to let settings_get() to work from a python script # Dirty hack to let settings_get() to work from a python script
if isinstance(result, str) and result in ["True", "False"]: if isinstance(result, str) and result in ["True", "False"]:
result = bool(result) result = bool(result == "True")
return result return result