[gnome] Update gnome extensions

This commit is contained in:
2026-01-13 17:20:07 -05:00
parent 88bae496fd
commit 21fd01aa82
181 changed files with 1145 additions and 7773 deletions

View File

@ -267,6 +267,7 @@ export const Panel = GObject.registerClass({
'sharing', 'sharing-page',
'desktop-list', 'clipboard', 'clipboard-sync', 'mousepad', 'mpris', 'systemvolume',
'share', 'share-list', 'receive-files', 'receive-directory',
'links', 'links-list', 'launch-urls',
// Battery
'battery',
@ -467,6 +468,7 @@ export const Panel = GObject.registerClass({
settings = this.pluginSettings('share');
this.actions.add_action(settings.create_action('receive-files'));
this.actions.add_action(settings.create_action('launch-urls'));
settings = this.pluginSettings('sms');
this.actions.add_action(settings.create_action('legacy-sms'));

View File

@ -146,7 +146,8 @@ export const Window = GObject.registerClass({
Template: 'resource:///org/gnome/Shell/Extensions/GSConnect/ui/preferences-window.ui',
Children: [
// HeaderBar
'headerbar', 'infobar', 'stack',
'headerbar', 'stack',
'infobar_discoverable', 'infobar_openssl',
'service-menu', 'service-edit', 'refresh-button',
'device-menu', 'prev-button',
@ -203,12 +204,21 @@ export const Window = GObject.registerClass({
// Discoverable InfoBar
this.settings.bind(
'discoverable',
this.infobar,
this.infobar_discoverable,
'reveal-child',
Gio.SettingsBindFlags.INVERT_BOOLEAN
);
this.add_action(this.settings.create_action('discoverable'));
// OpenSSL-missing infobar
this.settings.bind(
'missing-openssl',
this.infobar_openssl,
'reveal-child',
Gio.SettingsBindFlags.DEFAULT
);
this.add_action(this.settings.create_action('missing-openssl'));
// Application Menu
this._initMenu();
@ -297,7 +307,9 @@ export const Window = GObject.registerClass({
}
_refresh() {
if (this.service.active && this.device_list.get_children().length < 1) {
const missing_openssl = this.settings.get_boolean('missing-openssl');
const no_devices = this.service.active && this.device_list.get_children().length < 1;
if (missing_openssl || no_devices) {
this.device_list_spinner.active = true;
this.service.activate_action('refresh', null);
} else {
@ -487,6 +499,14 @@ export const Window = GObject.registerClass({
this.service_edit.grab_focus();
}
_onRetryOpenssl(button, event) {
this.settings.set_boolean('enabled', false);
GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT_IDLE, 2, () => {
this.settings.set_boolean('enabled', true);
return GLib.SOURCE_REMOVE;
});
}
/*
* Context Switcher
*/