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() {
|
show: function() {
|
||||||
this._activePage = this._workspacesPage;
|
this._activePage = this._workspacesPage;
|
||||||
|
|
||||||
|
this.reset();
|
||||||
this._appsPage.hide();
|
this._appsPage.hide();
|
||||||
this._searchPage.hide();
|
this._searchPage.hide();
|
||||||
this._workspacesDisplay.show();
|
this._workspacesDisplay.show();
|
||||||
@ -244,11 +245,8 @@ const ViewSelector = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onShowAppsButtonToggled: function() {
|
_onShowAppsButtonToggled: function() {
|
||||||
if (this._searchActive)
|
this._showPage(this._showAppsButton.checked ? this._appsPage
|
||||||
this.reset();
|
: this._workspacesPage);
|
||||||
else
|
|
||||||
this._showPage(this._showAppsButton.checked ? this._appsPage
|
|
||||||
: this._workspacesPage);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_resetShowAppsButton: function() {
|
_resetShowAppsButton: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user