mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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 ``` Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>
This commit is contained in:
parent
3121476436
commit
74d0b066e9
1 changed files with 4 additions and 0 deletions
|
|
@ -134,6 +134,10 @@ var Overview = class {
|
|||
return this._visibleTarget;
|
||||
}
|
||||
|
||||
get closing() {
|
||||
return this._animationInProgress && !this._visibleTarget;
|
||||
}
|
||||
|
||||
_createOverview() {
|
||||
if (this._overview)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue