Skip to content

Commit

Permalink
appIcons: Hide launch menu items and generic actions if the app is up…
Browse files Browse the repository at this point in the history
…dating
  • Loading branch information
3v1n0 authored and vanvugt committed Aug 7, 2024
1 parent 0a7d1a6 commit a5c3a24
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions appIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,9 @@ const DockAppIconMenu = class DockAppIconMenu extends PopupMenu.PopupMenu {
this._appendSeparator();

const appInfo = this._source.app.get_app_info();
const actions = appInfo.list_actions();
if (this._source.app.can_open_new_window() &&
const actions = this._source.updating ? [] : appInfo.list_actions();
if (!this._source.updating &&
this._source.app.can_open_new_window() &&
actions.indexOf('new-window') === -1) {
this._newWindowMenuItem = this._appendMenuItem(_('New Window'));
this._newWindowMenuItem.connect('activate', () => {
Expand All @@ -1115,7 +1116,8 @@ const DockAppIconMenu = class DockAppIconMenu extends PopupMenu.PopupMenu {
this._appendSeparator();
}

if (Docking.DockManager.getDefault().discreteGpuAvailable &&
if (!this._source.updating &&
Docking.DockManager.getDefault().discreteGpuAvailable &&
this._source.app.state === Shell.AppState.STOPPED) {
const appPrefersNonDefaultGPU = appInfo.get_boolean('PrefersNonDefaultGPU');
const gpuPref = appPrefersNonDefaultGPU
Expand Down

0 comments on commit a5c3a24

Please sign in to comment.