Skip to content

Commit 9bbb6a7

Browse files
committed
remove unneeded function
1 parent 7cd9b74 commit 9bbb6a7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • files/usr/share/cinnamon/applets/notifications@cinnamon.org

files/usr/share/cinnamon/applets/notifications@cinnamon.org/applet.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,13 @@ class CinnamonNotificationsApplet extends Applet.TextIconApplet {
6767
this._update_timestamp();
6868

6969
this.notifications.forEach(notification => {
70-
global.reparentActor(notification.actor, this._notificationbin);
70+
if (notification.actor.get_parent() !== this._notificationbin)
71+
global.reparentActor(notification.actor, this._notificationbin);
7172
});
7273

7374
this.menu.toggle();
7475
}
7576

76-
_onMenuClosed() {
77-
this._notificationbin.remove_all_children();
78-
}
79-
8077
_display() {
8178
// Always start the applet empty, void of any notifications.
8279
this.set_applet_icon_symbolic_name("empty-notif");

0 commit comments

Comments
 (0)