appDisplay: Fix logic error
Commit f6b4b96737
accidentally swapped the conditions here from
!includes() to includes().
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/621
This commit is contained in:
parent
355b5eebec
commit
55c717c2dc
@ -1713,7 +1713,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
|
|||||||
let appInfo = this._source.app.get_app_info();
|
let appInfo = this._source.app.get_app_info();
|
||||||
let actions = appInfo.list_actions();
|
let actions = appInfo.list_actions();
|
||||||
if (this._source.app.can_open_new_window() &&
|
if (this._source.app.can_open_new_window() &&
|
||||||
actions.includes('new-window')) {
|
!actions.includes('new-window')) {
|
||||||
this._newWindowMenuItem = this._appendMenuItem(_("New Window"));
|
this._newWindowMenuItem = this._appendMenuItem(_("New Window"));
|
||||||
this._newWindowMenuItem.connect('activate', () => {
|
this._newWindowMenuItem.connect('activate', () => {
|
||||||
if (this._source.app.state == Shell.AppState.STOPPED)
|
if (this._source.app.state == Shell.AppState.STOPPED)
|
||||||
@ -1727,7 +1727,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
|
|||||||
|
|
||||||
if (discreteGpuAvailable &&
|
if (discreteGpuAvailable &&
|
||||||
this._source.app.state == Shell.AppState.STOPPED &&
|
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 = this._appendMenuItem(_("Launch using Dedicated Graphics Card"));
|
||||||
this._onDiscreteGpuMenuItem.connect('activate', () => {
|
this._onDiscreteGpuMenuItem.connect('activate', () => {
|
||||||
if (this._source.app.state == Shell.AppState.STOPPED)
|
if (this._source.app.state == Shell.AppState.STOPPED)
|
||||||
|
Loading…
Reference in New Issue
Block a user