[gnome-shell/gnome-40] overview: Add a 'closing' getter
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-40] overview: Add a 'closing' getter
- Date: Tue, 21 Sep 2021 18:08:46 +0000 (UTC)
commit a0ae847eaf11ce65aecfc3d7813545bdabdc7d20
Author: Daniel van Vugt <daniel van vugt canonical com>
Date: Wed Sep 16 14:52:19 2020 +0800
overview: Add a 'closing' getter
Which better communicates what we are checking for, and is a little more
elegant than repeatedly writing:
```
Main.overview.animationInProgress && Main.overview.visibleTarget == false
```
(cherry picked from commit 74d0b066e9b6d1e434e1bb5f31b29440b5a24b69)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1982>
js/ui/overview.js | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 529779ea8b..b61c0b066d 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -145,6 +145,10 @@ var Overview = class {
return this._visibleTarget;
}
+ get closing() {
+ return this._animationInProgress && !this._visibleTarget;
+ }
+
_createOverview() {
if (this._overview)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]