[gnome] Fix version for gjsosk and gsconnect, add impatience

This commit is contained in:
2024-11-01 09:35:38 -04:00
parent 66e76c2764
commit 1bd891f30a
78 changed files with 804 additions and 1226 deletions

View File

@ -239,19 +239,20 @@ const Source = GObject.registerClass({
if (cachedNotification) {
cachedNotification.requestReplyId = requestReplyId;
// Bail early If @notificationParams represents an exact repeat
const title = notification.title;
const body = notification.body
? notification.body
: null;
// Bail early If @notification represents an exact repeat
if (cachedNotification.title === title &&
cachedNotification.body === body)
return cachedNotification;
// If the details have changed, flag as an update
cachedNotification.title = title;
cachedNotification.body = body;
cachedNotification.acknowledged = false;
return cachedNotification;
}
@ -304,10 +305,8 @@ const Source = GObject.registerClass({
* notification limit (3)
*/
_addNotificationToMessageTray(notification) {
if (this.notifications.includes(notification)) {
notification.acknowledged = false;
if (this.notifications.includes(notification))
return;
}
while (this.notifications.length >= 10) {
const [oldest] = this.notifications;