Skip to content

Commit

Permalink
Fix clearing settings items
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewWilkes committed Jun 1, 2024
1 parent 4d644a0 commit 165e01f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def set(k, v):
global _modified
if _settings is None:
load()
_settings[k] = v
if v is None:
del _settings[k]
else:
_settings[k] = v
_modified = True


Expand Down

0 comments on commit 165e01f

Please sign in to comment.