[gnome-shell/wip/hadess/add-nvidia-other-gpu-support: 155/158] appDisplay: Remove unimplemented 'activate-discrete-gpu'
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/hadess/add-nvidia-other-gpu-support: 155/158] appDisplay: Remove unimplemented 'activate-discrete-gpu'
- Date: Tue, 3 Dec 2019 11:42:43 +0000 (UTC)
commit 402da170db0641f141a6d5a1c6f20983d48f54da
Author: Bastien Nocera <hadess hadess net>
Date: Mon Oct 21 12:48:43 2019 +0200
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/issues/1804
js/ui/appDisplay.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 61dd7ae437..c05b17726c 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -2572,8 +2572,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();
@@ -2586,8 +2585,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]