Skip to content

Commit

Permalink
Merge pull request #754 from glerroo/master
Browse files Browse the repository at this point in the history
Gnome-Shell 43 compatibility update.
  • Loading branch information
chrisspen committed Jan 22, 2023
2 parents 76bd908 + 0815ed9 commit 8f74f07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion system-monitor@paradoxxx.zero.gmail.com/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,11 @@ const Battery = class SystemMonitor_Battery extends ElementBase {
this.icon_hidden = false;
this.percentage = 0;
this.timeString = '-- ';
this._proxy = StatusArea.aggregateMenu._power._proxy;
if (shell_Version >= '43') {
this._proxy = StatusArea.quickSettings._system._systemItem._powerToggle._proxy;
} else {
this._proxy = StatusArea.aggregateMenu._power._proxy;
}
if (typeof (this._proxy) === 'undefined') {
this._proxy = StatusArea.battery._proxy;
}
Expand Down
2 changes: 1 addition & 1 deletion system-monitor@paradoxxx.zero.gmail.com/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"shell-version": ["3.26", "3.28", "3.30", "3.32", "3.34", "3.36", "40", "41", "42"],
"shell-version": ["3.26", "3.28", "3.30", "3.32", "3.34", "3.36", "40", "41", "42", "43"],
"uuid": "system-monitor@paradoxxx.zero.gmail.com",
"name": "system-monitor",
"url": "https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet",
Expand Down

0 comments on commit 8f74f07

Please sign in to comment.