From e0a3520d9ef782649016bd4c92f886a55761aca0 Mon Sep 17 00:00:00 2001 From: freeram Date: Fri, 3 May 2024 19:45:31 -0600 Subject: [PATCH] Update button if rpc disconnected --- src/frames/pomodoro_frame.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frames/pomodoro_frame.py b/src/frames/pomodoro_frame.py index 884cd18..3416c01 100644 --- a/src/frames/pomodoro_frame.py +++ b/src/frames/pomodoro_frame.py @@ -116,6 +116,9 @@ def update_rpc(self): self.rpc.paused_state(self.start_time_timestamp) else: self.rpc.idling_state() + else: + if self.discord_button.cget("state") == 'normal': + self.discord_button.configure(text=DISCONNECTED_TEXT, text_color=DISCONNECTED_COLOR) # Discord-imposed rate limit time.sleep(15)