[gnome-shell] overview: Minor cleanup
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] overview: Minor cleanup
- Date: Wed, 11 Sep 2019 21:14:21 +0000 (UTC)
commit ce63d21dcc141912232185b1c90de9a88a6ddf02
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Aug 20 04:25:24 2019 +0200
overview: Minor cleanup
Safe one indentation level by combining conditions.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710
js/ui/overview.js | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 1325eff6b5..49907b9d29 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -481,15 +481,13 @@ var Overview = class {
if (this._shown) {
let shouldBeModal = !this._inXdndDrag;
- if (shouldBeModal) {
- if (!this._modal) {
- if (Main.pushModal(this._overview,
- { actionMode: Shell.ActionMode.OVERVIEW })) {
- this._modal = true;
- } else {
- this.hide();
- return false;
- }
+ if (shouldBeModal && !this._modal) {
+ let actionMode = Shell.ActionMode.OVERVIEW;
+ if (Main.pushModal(this._overview, { actionMode })) {
+ this._modal = true;
+ } else {
+ this.hide();
+ return false;
}
}
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]