[gnome-shell/wip/jimmac/dash-icon-spacing: 49/72] viewSelector: Default to APPS page when no page is set
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/jimmac/dash-icon-spacing: 49/72] viewSelector: Default to APPS page when no page is set
- Date: Tue, 2 Feb 2021 11:58:19 +0000 (UTC)
commit fa61c243d12c36799476b7af05df3cbff490d905
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]