[gnome-shell] appDisplay: Animate activate-discrete-gpu action in the AppIconMenu
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: Animate activate-discrete-gpu action in the AppIconMenu
- Date: Thu, 8 Aug 2019 17:16:36 +0000 (UTC)
commit 87f5aa7a13f48dc9efb02b0d3b29af2680d2c2aa
Author: Jonas Dreßler <verdre v0yd nl>
Date: Thu Aug 8 18:15:32 2019 +0200
appDisplay: Animate activate-discrete-gpu action in the AppIconMenu
Just as we animate the apps launch using the zoom out animation if the
'new-window' action provided by the app is launched, we should also show
this animation if the 'activate-discrete-gpu' action provided by the app
via its AppInfo is launched.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/673
js/ui/appDisplay.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index dbb112104f..d028e4cdbe 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -2056,7 +2056,8 @@ 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')
+ if (action == 'new-window' ||
+ action == 'activate-discrete-gpu')
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]