[gnome-shell/wip/rstrode/login-screen-extensions: 59/134] extensionSystem: Fix opening Extensions app from notification




commit 296944039bf1b64f52ee4e7779d802568314ce69
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Jan 26 17:12:04 2021 +0100

    extensionSystem: Fix opening Extensions app from notification
    
    Launching the app is implemented by the source's open() method, but
    only external notifications are hooked up to call into the source
    when no default action was provided.

 js/ui/extensionSystem.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js
index 320af54e4b..81804ea5ed 100644
--- a/js/ui/extensionSystem.js
+++ b/js/ui/extensionSystem.js
@@ -194,6 +194,8 @@ var ExtensionManager = class {
             let notification = new MessageTray.Notification(source,
                 _('Extension Updates Available'),
                 _('Extension updates are ready to be installed.'));
+            notification.connect('activated',
+                () => source.open());
             source.notify(notification);
         }
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]