From 6b64b94b34b465beef4f134dd3bd920900528524 Mon Sep 17 00:00:00 2001 From: DevilXD <4180725+DevilXD@users.noreply.github.com> Date: Sun, 15 Dec 2024 11:04:28 +0100 Subject: [PATCH] Small comments cleanup --- channel.py | 2 +- gui.py | 3 ++- twitch.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/channel.py b/channel.py index 835f71e..e8bb920 100644 --- a/channel.py +++ b/channel.py @@ -337,7 +337,7 @@ class Channel: 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() diff --git a/gui.py b/gui.py index fc56e2a..75848aa 100644 --- a/gui.py +++ b/gui.py @@ -2046,7 +2046,8 @@ class GUIManager: ) # 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") diff --git a/twitch.py b/twitch.py index c375c7e..0944999 100644 --- a/twitch.py +++ b/twitch.py @@ -1087,7 +1087,7 @@ class Twitch: 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()