mirror of
https://git.srhtnin.garden/sarah/SaraTune.git
synced 2026-10-15 02:23:17 +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
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user