diff options
author | Bastien Nocera <hadess@hadess.net> | 2019-10-21 12:48:43 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-12-12 17:19:41 +0100 |
commit | 4d16d2ceed897083820bfb2045f76595f35f5333 (patch) | |
tree | d4b46f3d04ab48ab132467e1764830957bec55d8 | |
parent | 9a45d9692aba6d0ff7d30b0f73237b78b3281b68 (diff) | |
download | gnome-shell-4d16d2ceed897083820bfb2045f76595f35f5333.tar.gz |
appDisplay: Remove unimplemented 'activate-discrete-gpu'
It was added in commit 009d021 but not advertised, and likely not used
by an application since then.
See: https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/781
-rw-r--r-- | js/ui/appDisplay.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index a39211f02..95976efae 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -2576,8 +2576,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu { } if (discreteGpuAvailable && - this._source.app.state == Shell.AppState.STOPPED && - !actions.includes('activate-discrete-gpu')) { + this._source.app.state == Shell.AppState.STOPPED) { this._onDiscreteGpuMenuItem = this._appendMenuItem(_("Launch using Dedicated Graphics Card")); this._onDiscreteGpuMenuItem.connect('activate', () => { this._source.animateLaunch(); @@ -2590,8 +2589,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu { let action = actions[i]; let item = this._appendMenuItem(appInfo.get_action_name(action)); item.connect('activate', (emitter, event) => { - if (action == 'new-window' || - action == 'activate-discrete-gpu') + if (action == 'new-window') this._source.animateLaunch(); this._source.app.launch_action(action, event.get_time(), -1); |