Skip to content

Commit

Permalink
Merge pull request #333 from colltoaction/master
Browse files Browse the repository at this point in the history
Fixed breaking bug with int set values
  • Loading branch information
RazinShaikh authored Jul 18, 2024
2 parents bdc69bc + b781a7b commit 4141cab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zxlive/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def get_settings_value(arg: str, _type: Type[T], default: T | None = None, setti
if _type == bool:
val = _settings.value(arg, default)
return str(val) == "True" or str(val) == "true"
if _type == int:
val = _settings.value(arg, default)
return int(str(val))
if not isinstance(val := _settings.value(arg, default), _type):
if default is not None:
return default
Expand Down

0 comments on commit 4141cab

Please sign in to comment.