Skip to content

Commit

Permalink
Fixed draw boolean initialization when there is no value
Browse files Browse the repository at this point in the history
  • Loading branch information
lhhunghimself committed Aug 5, 2023
1 parent 898c92a commit 8061c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coreutils/BwBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ def drawCheckbox(self, pname, pvalue, box=None):
pname, pvalue, pvalue["label"]
)
)
if not hasattr(self, pname):
if not hasattr(self, pname) or getattr(self, pname) is None:
if "default" in pvalue:
if type(pvalue["default"]) is str:
if pvalue["default"] == "True":
Expand Down

0 comments on commit 8061c46

Please sign in to comment.