Skip to content

Commit

Permalink
Small comments cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Dec 15, 2024
1 parent 2c5f56b commit 6b64b94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def set_offline(self):
old_stream = self._stream
self._stream = None
self._twitch.on_channel_update(self, old_stream, self._stream)
needs_display = False
needs_display = False # calling on_channel_update always does a display at the end
if needs_display:
self.display()

Expand Down
3 changes: 2 additions & 1 deletion gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,8 @@ def __init__(self, twitch: Twitch):
)
# add padding to the tab names
style.configure("TNotebook.Tab", padding=[8, 4])
if theme != "classic" and sys.platform != "darwin": # Skip these for classic theme or macOS
# Skip these for classic theme or macOS
if theme != "classic" and sys.platform != "darwin":
# remove Notebook.focus from the Notebook.Tab layout tree to avoid an ugly dotted line
# on tab selection. We fold the Notebook.focus children into Notebook.padding children.
original = style.layout("TNotebook.Tab")
Expand Down
2 changes: 1 addition & 1 deletion twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ async def process_stream_update(self, channel_id: int, message: JsonType):
logger.log(CALL, f"Channel update from websocket: {channel.name}{game_change}")
# There's no information about channel tags here, but this event is triggered
# when the tags change. We can use this to just update the stream data after the change.
# Use 'set_online' to introduce a delay, allowing for multiple title and tags
# Use 'check_online' to introduce a delay, allowing for multiple title and tags
# changes before we update. This eventually calls 'on_channel_update' below.
channel.check_online()

Expand Down

0 comments on commit 6b64b94

Please sign in to comment.