Fix peek when closing grouped previews

This commit is contained in:
Charles Gagnon
2020-09-04 07:39:01 -04:00
parent eff0b19203
commit 23d22bd6ec

View File

@@ -874,13 +874,16 @@ var Preview = Utils.defineClass({
},
_onCloseBtnClick: function() {
this.window.delete(global.get_current_time());
this._hideOrShowCloseButton(true);
this.reactive = false;
if (!Me.settings.get_boolean('group-apps')) {
this._previewMenu.close();
} else {
this._previewMenu.endPeekHere();
}
this.window.delete(global.get_current_time());
},
_onButtonReleaseEvent: function(e) {