[gnome] Fix version for gjsosk and gsconnect, add impatience
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
|
||||
import Gio from 'gi://Gio';
|
||||
|
||||
import Config from '../config.mjs';
|
||||
import Config from '../config.js';
|
||||
|
||||
export class LockscreenRemoteAccess {
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -170,8 +170,7 @@ export default class Tooltip {
|
||||
this._bin.child.add_child(this.label);
|
||||
}
|
||||
|
||||
Main.layoutManager.uiGroup.add_child(this._bin);
|
||||
Main.layoutManager.uiGroup.set_child_above_sibling(this._bin, null);
|
||||
Main.layoutManager.addTopChrome(this._bin);
|
||||
} else if (this.custom) {
|
||||
this._bin.child = this.custom;
|
||||
} else {
|
||||
@ -234,7 +233,7 @@ export default class Tooltip {
|
||||
time: 0.10,
|
||||
transition: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||
onComplete: () => {
|
||||
Main.layoutManager.uiGroup.remove_actor(this._bin);
|
||||
Main.layoutManager.removeChrome(this._bin);
|
||||
|
||||
if (this.custom)
|
||||
this._bin.remove_child(this.custom);
|
||||
@ -291,7 +290,7 @@ export default class Tooltip {
|
||||
this.custom.destroy();
|
||||
|
||||
if (this._bin) {
|
||||
Main.layoutManager.uiGroup.remove_actor(this._bin);
|
||||
Main.layoutManager.removeChrome(this._bin);
|
||||
this._bin.destroy();
|
||||
}
|
||||
|
||||
@ -306,4 +305,3 @@ export default class Tooltip {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ import Gio from 'gi://Gio';
|
||||
import GLib from 'gi://GLib';
|
||||
import Gtk from 'gi://Gtk';
|
||||
|
||||
import Config from '../config.mjs';
|
||||
import Config from '../config.js';
|
||||
|
||||
let St = null; // St is not available for prefs.js importing this file.
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user