mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
FdoNotificationDaemon: Don't destroy all non-resident on app activation
Don't close all non-resident notifications if one notification of an app is activated with the default action. This behavior isn't part of the fdo notification specs and IMO it may confuse app developers and user about why notifications are removed. Additionally, with grouping by app, add in a future commit it's much easier to dismiss all notifications of an app.
This commit is contained in:
parent
e889ee1983
commit
088c2035c7
2 changed files with 0 additions and 8 deletions
|
|
@ -597,13 +597,6 @@ export const Source = GObject.registerClass({
|
|||
// To be overridden by subclasses
|
||||
open() {
|
||||
}
|
||||
|
||||
destroyNonResidentNotifications() {
|
||||
for (let i = this.notifications.length - 1; i >= 0; i--) {
|
||||
if (!this.notifications[i].resident)
|
||||
this.notifications[i].destroy();
|
||||
}
|
||||
}
|
||||
});
|
||||
SignalTracker.registerDestroyableType(Source);
|
||||
|
||||
|
|
|
|||
|
|
@ -368,7 +368,6 @@ class FdoNotificationDaemonSource extends MessageTray.Source {
|
|||
|
||||
open() {
|
||||
this.openApp();
|
||||
this.destroyNonResidentNotifications();
|
||||
}
|
||||
|
||||
openApp() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue