mirror of
https://github.com/gryf/wicd.git
synced 2026-02-18 07:55:45 +01:00
branches/experimental:
- Fix some wired method issues in the daemon. - Make sure stringToBoolean always returns a boolean.
This commit is contained in:
@@ -504,7 +504,7 @@ def stringToBoolean(text):
|
||||
return True
|
||||
if text in ("False", "0"):
|
||||
return False
|
||||
return text
|
||||
return bool(text)
|
||||
|
||||
def checkboxTextboxToggle(checkbox, textboxes):
|
||||
for textbox in textboxes:
|
||||
|
||||
Reference in New Issue
Block a user