fix: shift only if there is more than one player
This commit is contained in:
@@ -86,7 +86,7 @@ def dbus_signal_handler(*args, manager, **kwargs):
|
||||
# there is no implicit way to get current player,
|
||||
# so we need to create a new manager to get the right order of players
|
||||
new_manager = Playerctl.PlayerManager()
|
||||
if len(new_manager.props.player_names) > 0:
|
||||
if len(new_manager.props.player_names) > 1:
|
||||
current_player_name = new_manager.props.player_names[0].name
|
||||
for player in manager.props.players:
|
||||
if player.props.player_name == current_player_name:
|
||||
|
||||
Reference in New Issue
Block a user