forked from Shinonome/dots-hyprland
notif animations
This commit is contained in:
@@ -130,7 +130,7 @@ Singleton {
|
||||
|
||||
function setActivePlayer(player: MprisPlayer) {
|
||||
const targetPlayer = player ?? Mpris.players[0];
|
||||
console.log(`setactive: ${targetPlayer} from ${activePlayer}`)
|
||||
console.log(`[Mpris] Active player ${targetPlayer} << ${activePlayer}`)
|
||||
|
||||
if (targetPlayer && this.activePlayer) {
|
||||
this.__reverse = Mpris.players.indexOf(targetPlayer) < Mpris.players.indexOf(this.activePlayer);
|
||||
|
||||
@@ -66,6 +66,15 @@ Singleton {
|
||||
root.discard(id);
|
||||
}
|
||||
|
||||
function discardAll() {
|
||||
root.list = []
|
||||
triggerListChange()
|
||||
notifFileView.setText(JSON.stringify(root.list, null, 2))
|
||||
notifServer.trackedNotifications.values.forEach((notif) => {
|
||||
notif.dismiss()
|
||||
})
|
||||
}
|
||||
|
||||
function attemptInvokeAction(id, notifIdentifier) {
|
||||
const notifServerIndex = notifServer.trackedNotifications.values.findIndex((notif) => notif.id === id);
|
||||
if (notifServerIndex !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user