fix mpris service references (#568)

This commit is contained in:
Jas Singh
2024-12-20 23:13:40 -08:00
committed by GitHub
parent e4a5e8060e
commit 3be15068c0
6 changed files with 28 additions and 22 deletions

View File

@@ -16,7 +16,7 @@ mprisService.connect('player-closed', (_, closedPlayer) => {
}
if (closedPlayer.busName === activePlayer.get()?.busName) {
const nextPlayer = mprisService.players.find((player) => player.busName !== closedPlayer.busName);
const nextPlayer = mprisService.get_players().find((player) => player.busName !== closedPlayer.busName);
activePlayer.set(nextPlayer);
}
});

View File

@@ -38,7 +38,7 @@ export const clearNotifications = async (notifications: AstalNotifd.Notification
const clearAllNotifications = async (): Promise<void> => {
try {
clearNotifications(notifdService.notifications, clearDelay.get());
clearNotifications(notifdService.get_notifications(), clearDelay.get());
} catch (error) {
errorHandler(error);
}