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
This commit is contained in:
parent
1390cd4048
commit
1f1aba4a32
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user