timeLimitsManager: Activate wellbeing settings on clicking notification
Signed-off-by: Philip Withnall <pwithnall@gnome.org> Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8161 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3604>
This commit is contained in:
parent
bba85e1fcd
commit
4e6de4e64b
@ -915,7 +915,7 @@ class TimeLimitsNotificationSource extends GObject.Object {
|
||||
}
|
||||
|
||||
if (this._notification === null) {
|
||||
this._notification = new TimeLimitsNotification(this._source);
|
||||
this._notification = new TimeLimitsNotification(this._source, this._app);
|
||||
this._notification.connect('destroy', () => (this._notification = null));
|
||||
}
|
||||
|
||||
@ -1018,10 +1018,17 @@ class TimeLimitsNotificationSource extends GObject.Object {
|
||||
|
||||
const TimeLimitsNotification = GObject.registerClass(
|
||||
class TimeLimitsNotification extends MessageTray.Notification {
|
||||
constructor(source) {
|
||||
constructor(source, app) {
|
||||
super({
|
||||
source,
|
||||
resident: true,
|
||||
});
|
||||
|
||||
this._app = app;
|
||||
}
|
||||
|
||||
activate() {
|
||||
this._app.activate();
|
||||
super.activate();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user