mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-08 05:14:35 +00:00
Fix a bug with set_status when amount of topics is zero
This commit is contained in:
@@ -64,7 +64,7 @@ class Websocket:
|
||||
|
||||
def set_status(self, status: Optional[str] = None, refresh_topics: bool = False):
|
||||
self._twitch.gui.websockets.update(
|
||||
self._idx, status=status, topics=refresh_topics and len(self.topics) or None
|
||||
self._idx, status=status, topics=(len(self.topics) if refresh_topics else None)
|
||||
)
|
||||
|
||||
def request_reconnect(self):
|
||||
|
||||
Reference in New Issue
Block a user