overview, viewSelector: Don't use two signals for checking the app button
Just one will do.
This commit is contained in:
parent
7d3ea1ac68
commit
0a8713770b
@ -261,17 +261,16 @@ const Overview = new Lang.Class({
|
|||||||
Main.messageTray.show();
|
Main.messageTray.show();
|
||||||
}));
|
}));
|
||||||
this._viewSelector.connect('apps-button-checked', Lang.bind(this,
|
this._viewSelector.connect('apps-button-checked', Lang.bind(this,
|
||||||
function() {
|
function(vs, checked) {
|
||||||
this.appsActive = true;
|
this.appsActive = checked;
|
||||||
this._thumbnailsBox.hide();
|
if (checked) {
|
||||||
Main.messageTray.hide();
|
this._thumbnailsBox.hide();
|
||||||
}));
|
Main.messageTray.hide();
|
||||||
this._viewSelector.connect('apps-button-unchecked', Lang.bind(this,
|
} else {
|
||||||
function() {
|
this._thumbnailsBox.show();
|
||||||
this.appsActive = false;
|
if (this.visible && !this.animationInProgress)
|
||||||
this._thumbnailsBox.show();
|
Main.messageTray.show();
|
||||||
if (this.visible && !this.animationInProgress)
|
}
|
||||||
Main.messageTray.show();
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
this.connect('app-drag-begin',
|
this.connect('app-drag-begin',
|
||||||
|
@ -216,10 +216,7 @@ const ViewSelector = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onShowAppsButtonToggled: function() {
|
_onShowAppsButtonToggled: function() {
|
||||||
if(this._showAppsButton.checked)
|
this.emit('apps-button-checked', this._showAppsButton.checked);
|
||||||
this.emit('apps-button-checked');
|
|
||||||
else
|
|
||||||
this.emit('apps-button-unchecked');
|
|
||||||
|
|
||||||
if (this.entryNonEmpty)
|
if (this.entryNonEmpty)
|
||||||
this.reset();
|
this.reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user