Skip to content

Commit

Permalink
fix(icons): make sure icons are always set
Browse files Browse the repository at this point in the history
  • Loading branch information
ImDevinC committed Dec 31, 2024
1 parent b6559be commit 09ab1d0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions actions/ChangeTextChannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def update_display(self, value: dict):
self.hide_error()

def on_tick(self):
self.update_display()
if self.channel_id:
self.set_label(self.channel_id)
else:
Expand Down
1 change: 1 addition & 0 deletions actions/ChangeVoiceChannelAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def update_display(self, value: dict):
self.hide_error()

def on_tick(self):
self.update_display()
if self.current_channel:
self.set_label(self.current_channel)
else:
Expand Down
3 changes: 3 additions & 0 deletions actions/DeafenAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def update_display(self, value: dict):
self.plugin_base.PATH, "assets", image), size=0.85)

def on_tick(self):
# We need to do this to help make sure icons are set on
# page transition. I don't like it, but it works for now
self.update_display({'mute': self.muted})
if self.deafened:
self.set_label("Deafened", position=self.label_location.lower())
else:
Expand Down
3 changes: 3 additions & 0 deletions actions/MuteAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def update_display(self, value: dict):
self.plugin_base.PATH, "assets", image), size=0.85)

def on_tick(self):
# We need to do this to help make sure icons are set on
# page transition. I don't like it, but it works for now
self.update_display({'mute': self.muted})
if self.muted:
self.set_label("Muted", position=self.label_location.lower())
else:
Expand Down

0 comments on commit 09ab1d0

Please sign in to comment.