Media controls (MPRIS, Windows SMTC); stop old tracks when switching

This commit is contained in:
sarah committed 2026-10-09 18:57:03 +02:00
1 parent e2d7515e08
commit d7f5eba1c2
14 files changed
+799 -26

No files matched your search

-4
View File
@@ -56,10 +56,6 @@ class PlayQueue:
self.Paths = self.Unshuffled or self.Paths
self.Index = self.Paths.index(Current) if Current in self.Paths else 0
def CycleRepeat(self) -> str:
self.Repeat = RepeatModes[(RepeatModes.index(self.Repeat) + 1) % len(RepeatModes)]
return self.Repeat
def Next(self, Finished: bool = False) -> Optional[int]:
"""The index to play after the current one (None: stop). Finished means
the track ran out by itself, which is when Repeat One applies."""