mirror of
https://git.srhtnin.garden/sarah/SaraTune.git
synced 2026-10-14 18:18:11 +02:00
Media controls (MPRIS, Windows SMTC); stop old tracks when switching
This commit is contained in:
1 parent
e2d7515e08
commit
d7f5eba1c2
14 files changed
+799
-26
No files matched your search
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user