powerProfiles: Remove support for power-profiles-daemon < 0.9.0

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2101>
This commit is contained in:
Bastien Nocera 2022-01-14 12:27:57 +01:00
parent 5b8a32ca71
commit b83b22bc58

View File

@ -101,10 +101,6 @@ class Indicator extends PanelMenu.SystemIndicator {
: PopupMenu.Ornament.NONE);
}
const perfItem = this._profileItems.get('performance');
if (perfItem)
perfItem.sensitive = this._proxy.PerformanceInhibited === '';
this._item.label.text = PROFILE_LABELS[this._proxy.ActiveProfile];
this._item.icon.icon_name = PROFILE_ICONS[this._proxy.ActiveProfile];
}