update for 47
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 28s

This commit is contained in:
Ward from fusion-voyager-3 2024-09-27 18:33:19 +03:00
parent a0d132ce9c
commit 5513329d37
6 changed files with 16 additions and 12 deletions

View File

@ -1 +1 @@
3 4

View File

@ -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 * Initial Creation

View File

@ -15,7 +15,9 @@ Standards-Version: 4.1.1
Package: gnome-shell-extension-supergfxctl-gex Package: gnome-shell-extension-supergfxctl-gex
Architecture: all Architecture: all
Depends: gnome-shell, Depends:
gnome-shell (<< 48~),
gnome-shell (>= 46~),
${misc:Depends}, ${misc:Depends},
${shlibs:Depends}, ${shlibs:Depends},
Description: Change the GTK3 theme to light/dark variant based on the system color scheme Description: Simple GPU Profile switcher Gnome-Shell-Extension for ASUS laptops using Supergfxctl

View File

@ -281,6 +281,11 @@ const GpuProfilesToggle = GObject.registerClass(
this.checked = this._activeProfile !== "Hybrid"; this.checked = this._activeProfile !== "Hybrid";
} }
destroy() {
this._clearRetryTimeout();
super.destroy();
}
} }
); );
@ -346,11 +351,7 @@ export default class GpuSwitcherExtension extends Extension {
disable() { disable() {
if (this._indicator) { if (this._indicator) {
this._indicator.quickSettingsItems.forEach((item) => { this._indicator.quickSettingsItems.forEach((item) => {
if (item instanceof GpuProfilesToggle) {
item._clearRetryTimeout();
}
item.destroy(); item.destroy();
console.log("disabled");
}); });
// Remove the indicator from its parent // Remove the indicator from its parent
const parent = this._indicator.get_parent(); const parent = this._indicator.get_parent();

View File

@ -4,7 +4,8 @@
"name": "supergfxctl-gex", "name": "supergfxctl-gex",
"settings-schema": "org.gnome.shell.extensions.supergfxctl-gex", "settings-schema": "org.gnome.shell.extensions.supergfxctl-gex",
"shell-version": [ "shell-version": [
"46" "46",
"47"
], ],
"url": "https://gitlab.com/asus-linux/supergfxctl-gex", "url": "https://gitlab.com/asus-linux/supergfxctl-gex",
"uuid": "supergfxctl-gex@asus-linux.org", "uuid": "supergfxctl-gex@asus-linux.org",

View File

@ -6,7 +6,7 @@ set -e
echo "$PIKA_BUILD_ARCH" > pika-build-arch echo "$PIKA_BUILD_ARCH" > pika-build-arch
VERSION="46.0" VERSION="47.0"
# Clone Upstream # Clone Upstream
cd ./gnome-shell-extension-supergfxctl-gex/ cd ./gnome-shell-extension-supergfxctl-gex/