[gnome-shell] appDisplay: Use correct view for animation
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: Use correct view for animation
- Date: Wed, 23 Nov 2016 22:21:07 +0000 (UTC)
commit e661d904debb4512e40839e8ab1d113b995a1187
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Nov 17 16:24:44 2016 +0100
appDisplay: Use correct view for animation
We currently assume that the current view matches the 'app-picker-view'
setting. While that is usually the case, there is one notable exception:
While there isn't sufficient usage data (yet), we show all applications
instead of an empty frequent view regardless of the setting. We should
animate the actually visible icons in that case, not the (non-existent)
ones from the hidden frequent view.
https://bugzilla.gnome.org/show_bug.cgi?id=774381
js/ui/appDisplay.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index f81ab59..a75d750 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1010,7 +1010,7 @@ const AppDisplay = new Lang.Class({
},
animate: function(animationDirection, onComplete) {
- let currentView = this._views[global.settings.get_uint('app-picker-view')].view;
+ let currentView = this._views.filter(v => v.control.has_style_pseudo_class('checked')).pop().view;
// Animate controls opacity using iconGrid animation time, since
// it will be the time the AllView or FrequentView takes to show
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]