From 55c717c2dc04e74207bc8aa80d8650ff6d9a6ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 10 Jul 2019 22:52:09 +0200 Subject: [PATCH] appDisplay: Fix logic error Commit f6b4b96737d3 accidentally swapped the conditions here from !includes() to includes(). https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/621 --- js/ui/appDisplay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 78128256d..ff771d302 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1713,7 +1713,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu { let appInfo = this._source.app.get_app_info(); let actions = appInfo.list_actions(); if (this._source.app.can_open_new_window() && - actions.includes('new-window')) { + !actions.includes('new-window')) { this._newWindowMenuItem = this._appendMenuItem(_("New Window")); this._newWindowMenuItem.connect('activate', () => { if (this._source.app.state == Shell.AppState.STOPPED) @@ -1727,7 +1727,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu { if (discreteGpuAvailable && this._source.app.state == Shell.AppState.STOPPED && - actions.includes('activate-discrete-gpu')) { + !actions.includes('activate-discrete-gpu')) { this._onDiscreteGpuMenuItem = this._appendMenuItem(_("Launch using Dedicated Graphics Card")); this._onDiscreteGpuMenuItem.connect('activate', () => { if (this._source.app.state == Shell.AppState.STOPPED)