[gnome-shell/gbsneto/40-stuff: 48/68] viewSelector: Default to APPS page when no page is set




commit 71f3e8174cdcc20f76c12746cfe498f7d0d0a056
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Jan 4 15:18:15 2021 -0300

    viewSelector: Default to APPS page when no page is set
    
    There are various ways to get _activePage set to null. In these cases,
    ViewSelector currently reports the active page is SEARCH. Switch to
    reporting the APPS page by default if _activePage is null.

 js/ui/viewSelector.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index 63b2f9f581..388e906aed 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -498,9 +498,9 @@ var ViewSelector = GObject.registerClass({
     }
 
     getActivePage() {
-        if (this._activePage === this._appsPage)
-            return ViewPage.APPS;
-        else
+        if (this._activePage === this._searchPage)
             return ViewPage.SEARCH;
+        else
+            return ViewPage.APPS;
     }
 });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]