Simplify none game state change handling
This commit is contained in:
1 parent
9dd2a1dc44
commit
e95ee4be5e
1 file changed
+2
-2
@@ -261,7 +261,7 @@ class Twitch:
|
||||
elif self._state is State.CHANNELS_FETCH:
|
||||
if self.game is None:
|
||||
self.change_state(State.GAME_SELECT)
|
||||
else:
|
||||
continue
|
||||
# pre-display the active drop without substracting a minute
|
||||
if (active_drop := self.get_active_drop()) is not None:
|
||||
active_drop.display(countdown=False)
|
||||
@@ -345,7 +345,7 @@ class Twitch:
|
||||
elif self._state is State.CHANNEL_SWITCH:
|
||||
if self.game is None:
|
||||
self.change_state(State.GAME_SELECT)
|
||||
else:
|
||||
continue
|
||||
# Change into the selected channel, stay in the watching channel,
|
||||
# or select a new channel that meets the required conditions
|
||||
priority_channels: list[Channel] = []
|
||||
|
||||
Reference in new issue
Block a user