Small comments cleanup
This commit is contained in:
1 parent
2c5f56b33b
commit
6b64b94b34
3 files changed
+4
-3
No files matched your search
+1
-1
@@ -337,7 +337,7 @@ class Channel:
|
|||||||
old_stream = self._stream
|
old_stream = self._stream
|
||||||
self._stream = None
|
self._stream = None
|
||||||
self._twitch.on_channel_update(self, old_stream, self._stream)
|
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:
|
if needs_display:
|
||||||
self.display()
|
self.display()
|
||||||
|
|
||||||
|
|||||||
@@ -2046,7 +2046,8 @@ class GUIManager:
|
|||||||
)
|
)
|
||||||
# add padding to the tab names
|
# add padding to the tab names
|
||||||
style.configure("TNotebook.Tab", padding=[8, 4])
|
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
|
# 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.
|
# on tab selection. We fold the Notebook.focus children into Notebook.padding children.
|
||||||
original = style.layout("TNotebook.Tab")
|
original = style.layout("TNotebook.Tab")
|
||||||
|
|||||||
@@ -1087,7 +1087,7 @@ class Twitch:
|
|||||||
logger.log(CALL, f"Channel update from websocket: {channel.name}{game_change}")
|
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
|
# 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.
|
# 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.
|
# changes before we update. This eventually calls 'on_channel_update' below.
|
||||||
channel.check_online()
|
channel.check_online()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user