Skip to content

Commit

Permalink
Merge pull request #2 from worldwidewoogie/master
Browse files Browse the repository at this point in the history
update for Gnome 40
  • Loading branch information
ibrokemycomputer committed May 2, 2021
2 parents 77531d9 + 11c0728 commit b177ff8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu;

const Config = imports.misc.config;
const SHELL_MAJOR = parseInt(Config.PACKAGE_VERSION.split('.')[0]);
const SHELL_MINOR = parseInt(Config.PACKAGE_VERSION.split('.')[1]);

let SSHQuickConnect = class SSHQuickConnect extends PanelMenu.Button {
Expand Down Expand Up @@ -71,7 +72,7 @@ let SSHQuickConnect = class SSHQuickConnect extends PanelMenu.Button {
*/

// Compatibility with gnome-shell >= 3.32
if (SHELL_MINOR > 30) {
if (SHELL_MAJOR > 39 || SHELL_MINOR > 30) {
SSHQuickConnect = GObject.registerClass(
{ GTypeName: 'SSHQuickConnect' },
SSHQuickConnect
Expand Down
5 changes: 3 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "This extension puts an icon in the panel with a simple dropdown menu that launches items from your ~.ssh/config",
"version": 1,
"shell-version": [
"3.36"
"3.36",
"40.0"
],
"url": "https://www.github.com/ibrokemycomputer/gnome-shell-extension-ssh-quick-connect"
}
}

0 comments on commit b177ff8

Please sign in to comment.