Skip to content

Commit

Permalink
Update button if rpc disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
jake158 committed May 4, 2024
1 parent 69970b0 commit e0a3520
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frames/pomodoro_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e0a3520

Please sign in to comment.