From 5513329d37cd5fdcf5d11a2bd9d5e6d49098e8d5 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Fri, 27 Sep 2024 18:33:19 +0300 Subject: [PATCH] update for 47 --- .github/release-nest-v3 | 2 +- gnome-shell-extension-supergfxctl-gex/debian/changelog | 2 +- gnome-shell-extension-supergfxctl-gex/debian/control | 10 ++++++---- .../supergfxctl-gex@asus-linux.org/extension.js | 9 +++++---- .../supergfxctl-gex@asus-linux.org/metadata.json | 3 ++- main.sh | 2 +- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/release-nest-v3 b/.github/release-nest-v3 index 00750ed..b8626c4 100644 --- a/.github/release-nest-v3 +++ b/.github/release-nest-v3 @@ -1 +1 @@ -3 +4 diff --git a/gnome-shell-extension-supergfxctl-gex/debian/changelog b/gnome-shell-extension-supergfxctl-gex/debian/changelog index 94e10b2..9e1cd05 100644 --- a/gnome-shell-extension-supergfxctl-gex/debian/changelog +++ b/gnome-shell-extension-supergfxctl-gex/debian/changelog @@ -1,4 +1,4 @@ -gnome-shell-extension-supergfxctl-gex (46.0-101pika2) pika; urgency=medium +gnome-shell-extension-supergfxctl-gex (47.0-101pika2) pika; urgency=medium * Initial Creation diff --git a/gnome-shell-extension-supergfxctl-gex/debian/control b/gnome-shell-extension-supergfxctl-gex/debian/control index 23a2443..8c8d525 100644 --- a/gnome-shell-extension-supergfxctl-gex/debian/control +++ b/gnome-shell-extension-supergfxctl-gex/debian/control @@ -15,7 +15,9 @@ Standards-Version: 4.1.1 Package: gnome-shell-extension-supergfxctl-gex Architecture: all -Depends: gnome-shell, - ${misc:Depends}, - ${shlibs:Depends}, -Description: Change the GTK3 theme to light/dark variant based on the system color scheme +Depends: + gnome-shell (<< 48~), + gnome-shell (>= 46~), + ${misc:Depends}, + ${shlibs:Depends}, +Description: Simple GPU Profile switcher Gnome-Shell-Extension for ASUS laptops using Supergfxctl diff --git a/gnome-shell-extension-supergfxctl-gex/usr/share/gnome-shell/extensions/supergfxctl-gex@asus-linux.org/extension.js b/gnome-shell-extension-supergfxctl-gex/usr/share/gnome-shell/extensions/supergfxctl-gex@asus-linux.org/extension.js index 96e565f..d74d715 100644 --- a/gnome-shell-extension-supergfxctl-gex/usr/share/gnome-shell/extensions/supergfxctl-gex@asus-linux.org/extension.js +++ b/gnome-shell-extension-supergfxctl-gex/usr/share/gnome-shell/extensions/supergfxctl-gex@asus-linux.org/extension.js @@ -281,6 +281,11 @@ const GpuProfilesToggle = GObject.registerClass( this.checked = this._activeProfile !== "Hybrid"; } + + destroy() { + this._clearRetryTimeout(); + super.destroy(); + } } ); @@ -346,11 +351,7 @@ export default class GpuSwitcherExtension extends Extension { disable() { if (this._indicator) { this._indicator.quickSettingsItems.forEach((item) => { - if (item instanceof GpuProfilesToggle) { - item._clearRetryTimeout(); - } item.destroy(); - console.log("disabled"); }); // Remove the indicator from its parent const parent = this._indicator.get_parent(); diff --git a/gnome-shell-extension-supergfxctl-gex/usr/share/gnome-shell/extensions/supergfxctl-gex@asus-linux.org/metadata.json b/gnome-shell-extension-supergfxctl-gex/usr/share/gnome-shell/extensions/supergfxctl-gex@asus-linux.org/metadata.json index d94bebd..9d91c46 100644 --- a/gnome-shell-extension-supergfxctl-gex/usr/share/gnome-shell/extensions/supergfxctl-gex@asus-linux.org/metadata.json +++ b/gnome-shell-extension-supergfxctl-gex/usr/share/gnome-shell/extensions/supergfxctl-gex@asus-linux.org/metadata.json @@ -4,7 +4,8 @@ "name": "supergfxctl-gex", "settings-schema": "org.gnome.shell.extensions.supergfxctl-gex", "shell-version": [ - "46" + "46", + "47" ], "url": "https://gitlab.com/asus-linux/supergfxctl-gex", "uuid": "supergfxctl-gex@asus-linux.org", diff --git a/main.sh b/main.sh index 1c807cf..8f94779 100755 --- a/main.sh +++ b/main.sh @@ -6,7 +6,7 @@ set -e echo "$PIKA_BUILD_ARCH" > pika-build-arch -VERSION="46.0" +VERSION="47.0" # Clone Upstream cd ./gnome-shell-extension-supergfxctl-gex/