overview: Minor cleanup
Safe one indentation level by combining conditions. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710
This commit is contained in:
parent
1da9937453
commit
ce63d21dcc
@ -481,15 +481,13 @@ var Overview = class {
|
|||||||
|
|
||||||
if (this._shown) {
|
if (this._shown) {
|
||||||
let shouldBeModal = !this._inXdndDrag;
|
let shouldBeModal = !this._inXdndDrag;
|
||||||
if (shouldBeModal) {
|
if (shouldBeModal && !this._modal) {
|
||||||
if (!this._modal) {
|
let actionMode = Shell.ActionMode.OVERVIEW;
|
||||||
if (Main.pushModal(this._overview,
|
if (Main.pushModal(this._overview, { actionMode })) {
|
||||||
{ actionMode: Shell.ActionMode.OVERVIEW })) {
|
this._modal = true;
|
||||||
this._modal = true;
|
} else {
|
||||||
} else {
|
this.hide();
|
||||||
this.hide();
|
return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user