Skip to content

Commit 53e1353

Browse files
committed
Clear applet's notifications if last applet removed
1 parent 9872c41 commit 53e1353

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class CinnamonNotificationsApplet extends Applet.TextIconApplet {
5555
Main.keybindingManager.removeHotKey("notification-open-" + this.instance_id);
5656
Main.keybindingManager.removeHotKey("notification-clear-" + this.instance_id);
5757
MessageTray.extensionsHandlingNotifications--;
58+
if (MessageTray.extensionsHandlingNotifications === 0) {
59+
this._clear_all();
60+
}
5861
}
5962

6063
_openMenu() {

0 commit comments

Comments
 (0)