From 37c0906755995b8d937031b576a593e8e95e4bb3 Mon Sep 17 00:00:00 2001 From: sunflowerskater Date: Fri, 13 Jan 2023 13:09:25 -0300 Subject: [PATCH] quickSettings: Add a "Power Settings" entry to the Power Profiles submenu This change adds the shortcut so it can be accessible by devices without a battery and to keep consistency with other submenus like the Wi-Fi submenu and the upcoming Bluetooth submenu (Teams/Design/os-mockups#178). Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6111 Part of Part-of: --- js/ui/status/powerProfiles.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/status/powerProfiles.js b/js/ui/status/powerProfiles.js index e15208d8f..05d66824f 100644 --- a/js/ui/status/powerProfiles.js +++ b/js/ui/status/powerProfiles.js @@ -68,6 +68,8 @@ class PowerProfilesToggle extends QuickMenuToggle { this._profileSection = new PopupMenu.PopupMenuSection(); this.menu.addMenuItem(this._profileSection); this.menu.setHeader('power-profile-balanced-symbolic', _('Power Profiles')); + this.menu.addSettingsAction(_('Power Settings'), + 'gnome-power-panel.desktop'); this._sync(); }