viewSelector: don't use resetShowAppsButton when pressing escape

Set the checked property explicitly. This is because
resetShowAppsButton() will only be used to flip the button state
blocking the page change in a future commit.

https://bugzilla.gnome.org/show_bug.cgi?id=693974
This commit is contained in:
Cosimo Cecchi 2013-02-16 12:50:25 -05:00
parent 31cdac7bfb
commit 1390cd4048

View File

@ -268,7 +268,7 @@ const ViewSelector = new Lang.Class({
if (this._searchActive) if (this._searchActive)
this.reset(); this.reset();
else if (this._showAppsButton.checked) else if (this._showAppsButton.checked)
this._resetShowAppsButton(); this._showAppsButton.checked = false;
else else
Main.overview.hide(); Main.overview.hide();
return true; return true;