overview, viewSelector: show/hide workspaces on apps button
This commit is contained in:
parent
7c3c6da368
commit
2498497cc1
@ -298,9 +298,11 @@ const Overview = new Lang.Class({
|
||||
if (!this.visible || this.animationInProgress)
|
||||
return;
|
||||
|
||||
let appsActive = this._viewSelector.getAppsActive();
|
||||
let searchActive = this._viewSelector.getSearchActive();
|
||||
|
||||
let dashVisible = !searchActive || inDrag;
|
||||
let thumbnailsVisible = !searchActive || inDrag;
|
||||
let thumbnailsVisible = (!searchActive && !appsActive) || inDrag;
|
||||
let trayVisible = !searchActive;
|
||||
|
||||
if (dashVisible)
|
||||
|
@ -455,6 +455,10 @@ const ViewSelector = new Lang.Class({
|
||||
RemoteSearch.loadRemoteSearchProviders(Lang.bind(this, this.addSearchProvider));
|
||||
},
|
||||
|
||||
getAppsActive: function() {
|
||||
return this._showAppsButton.checked;
|
||||
},
|
||||
|
||||
addSearchProvider: function(provider) {
|
||||
if (!this._shouldUseSearchProvider(provider))
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user