From 75760e2354ddf6ad382cfb114d67e00f5e9bd652 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Fri, 29 Aug 2025 13:31:56 -0400 Subject: [PATCH] fix index remaining when player is destroyed --- services/Mpris.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/Mpris.qml b/services/Mpris.qml index 585bbd0..2abc69d 100644 --- a/services/Mpris.qml +++ b/services/Mpris.qml @@ -16,6 +16,12 @@ Singleton { property int currentIndex: 0 } + onPlayersChanged: { + if (!active) { + properties.currentIndex = 0; + } + } + function nextPlayer() { if (players.length == 0) { return;