fix mpris service references (#568)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user