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

+2
View File
@@ -18,6 +18,8 @@ class App:
# Set by Main.
self.SwitchMode: Callable[[str], None] = lambda Name: None
self.OpenInAudio: Callable[[list[str]], None] = lambda Paths: None
self.MediaChanged: Callable[[], None] = lambda: None # a mode's NowPlaying changed
self.MediaModesChanged: Callable[[], None] = lambda: None # shuffle, repeat or loop changed
def Notify(self, Text: str, Kind: str = "info") -> None:
Background, Accent = NotificationStyle(Kind)