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.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1595>
This commit is contained in:
Florian Müllner 2021-01-26 17:12:04 +01:00
parent db9a008e8a
commit ddc2e0f4cb

View File

@ -252,6 +252,8 @@ var ExtensionManager = class {
let notification = new MessageTray.Notification(source, let notification = new MessageTray.Notification(source,
_('Extension Updates Available'), _('Extension Updates Available'),
_('Extension updates are ready to be installed.')); _('Extension updates are ready to be installed.'));
notification.connect('activated',
() => source.open());
source.showNotification(notification); source.showNotification(notification);
} }
} }