From d37869a70a0b8e7015069267933b3b4c01d5e97f Mon Sep 17 00:00:00 2001 From: ElectricityMachine <47489506+ElectricityMachine@users.noreply.github.com> Date: Mon, 29 Apr 2024 21:14:22 -0400 Subject: [PATCH] Check if status indicator is enabled before updating (#80) Fixes #79 --- script.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.py b/script.py index d9ada03..5d0aba3 100644 --- a/script.py +++ b/script.py @@ -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