From 1f1aba4a323f8342b39e49610d3c960ed4948e09 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sat, 16 Feb 2013 12:54:19 -0500 Subject: [PATCH] viewSelector: always reset search string when entering overview Instead of relying on the apps button callback to do it for us. https://bugzilla.gnome.org/show_bug.cgi?id=693974 --- js/ui/viewSelector.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index 85ff6156d..de9237bea 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -161,6 +161,7 @@ const ViewSelector = new Lang.Class({ show: function() { this._activePage = this._workspacesPage; + this.reset(); this._appsPage.hide(); this._searchPage.hide(); this._workspacesDisplay.show(); @@ -244,11 +245,8 @@ const ViewSelector = new Lang.Class({ }, _onShowAppsButtonToggled: function() { - if (this._searchActive) - this.reset(); - else - this._showPage(this._showAppsButton.checked ? this._appsPage - : this._workspacesPage); + this._showPage(this._showAppsButton.checked ? this._appsPage + : this._workspacesPage); }, _resetShowAppsButton: function() {