From 715aedaa44c466064d6f2adad89e81bd1d825a51 Mon Sep 17 00:00:00 2001 From: Nicolas Derumigny Date: Thu, 3 Nov 2022 00:42:31 -0600 Subject: [PATCH] Gnome 43 support. Closes #199 --- metadata.json | 2 +- src/indicator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata.json b/metadata.json index a5f4ee8f..c4f25b9d 100644 --- a/metadata.json +++ b/metadata.json @@ -1,7 +1,7 @@ { "localedir": "/usr/local/share/locale", "shell-version": [ - "3.28", "3.30", "3.36", "3.38", "40", "41", "42" + "3.28", "3.30", "3.36", "3.38", "40", "41", "42", "43" ], "uuid": "cpupower@mko-sl.de", "name": "CPU Power Manager", diff --git a/src/indicator.js b/src/indicator.js index 573796f5..e48e242f 100644 --- a/src/indicator.js +++ b/src/indicator.js @@ -108,7 +108,7 @@ var CPUFreqIndicator = class CPUFreqIndicator extends baseindicator.CPUFreqBaseI } enable() { - this.power = Main.panel.statusArea["aggregateMenu"]._power; + this.power = imports.ui.main.panel.statusArea.quickSettings._system._systemItem._powerToggle; this.powerState = this.power._proxy.State; this.powerConnectSignalId = this.power._proxy.connect( "g-properties-changed",