Skip to content

Commit

Permalink
Remove unneeded exports, set metadata to GNOME 45
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Sep 17, 2023
1 parent ffb2942 commit ed3a1e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion data/metadata.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"name": "GSConnect",
"description": "GSConnect is a complete implementation of KDE Connect especially for GNOME Shell with Nautilus, Chrome and Firefox integration. It does not rely on the KDE Connect desktop application and will not work with it installed.\n\nKDE Connect allows devices to securely share content like notifications or files and other features like SMS messaging and remote control. The KDE Connect team has applications for Linux, BSD, Android, Sailfish, iOS, macOS and Windows.\n\nPlease report issues on Github!",
"version": @PACKAGE_VERSION@,
"shell-version": [ "44" ],
"shell-version": [ "45" ],
"url": "@PACKAGE_URL@/wiki"
}
16 changes: 8 additions & 8 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const Remote = globalThis.GSConnectLegacyExports.Remote;

const QuickSettingsMenu = Main.panel.statusArea.quickSettings;


/**
* A System Indicator used as the hub for spawning device indicators and
* indicating that the extension is active when there are none.
Expand Down Expand Up @@ -354,10 +353,11 @@ class ServiceIndicator extends QuickSettings.SystemIndicator {
}
});

export let serviceIndicator = null;
export let lockscreenInput = null;
let serviceIndicator = null;

export default class GSConnectExtension extends Extension {
lockscreenInput = null;

constructor(metadata) {
super(metadata);
Utils.setupExtensionData(this.path);
Expand Down Expand Up @@ -392,18 +392,18 @@ export default class GSConnectExtension extends Extension {
serviceIndicator = new ServiceIndicator();
Notification.patchGtkNotificationSources();

lockscreenInput = new Input.LockscreenRemoteAccess();
lockscreenInput.patchInhibitor();
this.lockscreenInput = new Input.LockscreenRemoteAccess();
this.lockscreenInput.patchInhibitor();
}

disable() {
serviceIndicator.destroy();
serviceIndicator = null;
Notification.unpatchGtkNotificationSources();

if (lockscreenInput) {
lockscreenInput.unpatchInhibitor();
lockscreenInput = null;
if (this.lockscreenInput) {
this.lockscreenInput.unpatchInhibitor();
this.lockscreenInput = null;
}
}
}
4 changes: 2 additions & 2 deletions src/shell/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ export const Clipboard = GObject.registerClass({
});


export let _portal = null;
export let _portalId = 0;
let _portal = null;
let _portalId = 0;

/**
* Watch for the service to start and export the clipboard portal when it does.
Expand Down

0 comments on commit ed3a1e3

Please sign in to comment.