Skip to content

Commit

Permalink
Check if status indicator is enabled before updating (#80)
Browse files Browse the repository at this point in the history
Fixes #79
  • Loading branch information
ElectricityMachine authored Apr 30, 2024
1 parent 39ad72b commit d37869a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def toggle_disable(reason: str) -> None:
beep = threading.Thread(target=lambda: winsound.Beep(500, 100) if enabled else winsound.Beep(400, 100))
beep.start()

update_label("SG+" if enabled else "SG-", "white")
if config["enable_status_indicator"]:
update_label("SG+" if enabled else "SG-", "white")
disabled_reason = reason


Expand Down

0 comments on commit d37869a

Please sign in to comment.