mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
fixup! breakManager: Add new state machine for screen time/health breaks
This commit is contained in:
parent
5725da8f43
commit
afe7739752
1 changed files with 2 additions and 6 deletions
|
|
@ -855,7 +855,8 @@ class BreakNotificationSource extends MessageTray.Source {
|
|||
this._notification.connect('destroy', () => (this._notification = null));
|
||||
}
|
||||
|
||||
this._notification.set(params);
|
||||
// Unacknowledge the notification when it’s updated, by default.
|
||||
this._notification.set({acknowledged: false, ...params});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1000,7 +1001,6 @@ class BreakNotificationSource extends MessageTray.Source {
|
|||
title: titleText,
|
||||
body: bodyText,
|
||||
sound: null,
|
||||
acknowledged: false,
|
||||
allowDelay: true,
|
||||
allowSkip: true,
|
||||
allowTake: false,
|
||||
|
|
@ -1070,7 +1070,6 @@ class BreakNotificationSource extends MessageTray.Source {
|
|||
body: bodyText,
|
||||
sound: null,
|
||||
urgency: this._urgencyForBreakType(this._manager.currentBreakType),
|
||||
acknowledged: false,
|
||||
allowDelay: false,
|
||||
allowSkip: false,
|
||||
allowTake: false,
|
||||
|
|
@ -1130,7 +1129,6 @@ class BreakNotificationSource extends MessageTray.Source {
|
|||
title: titleText,
|
||||
body: bodyText,
|
||||
sound: null,
|
||||
acknowledged: false,
|
||||
allowDelay: true,
|
||||
allowSkip: false,
|
||||
allowTake: true,
|
||||
|
|
@ -1151,7 +1149,6 @@ class BreakNotificationSource extends MessageTray.Source {
|
|||
title: _('Break Overdue'),
|
||||
body: bodyText,
|
||||
sound: null,
|
||||
acknowledged: false,
|
||||
allowDelay: false,
|
||||
allowSkip: false,
|
||||
allowTake: false,
|
||||
|
|
@ -1172,7 +1169,6 @@ class BreakNotificationSource extends MessageTray.Source {
|
|||
title: _('Break Interrupted'),
|
||||
body: bodyText,
|
||||
sound: null,
|
||||
acknowledged: false,
|
||||
allowDelay: false,
|
||||
allowSkip: false,
|
||||
allowTake: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue