diff options
author | Florian Müllner <fmuellner@gnome.org> | 2023-03-15 20:41:48 +0100 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2023-03-19 19:54:45 +0000 |
commit | 5766d4111ac065b37417bedcc1b998ab6bee5514 (patch) | |
tree | e4caf99c5d0298e262c880fcdcd3ce502f288167 | |
parent | 34712449da3f1d897ae07fc85c0234eb3a02da5c (diff) | |
download | gnome-shell-5766d4111ac065b37417bedcc1b998ab6bee5514.tar.gz |
modalDialog: Fix fading out dialog
The dialog's state property has been read-only since
commit 2f6323afc, but the callback at the end of the
fade transition still tries to set the value directly.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6506
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2696>
-rw-r--r-- | js/ui/modalDialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index 64800a376..0561b8b15 100644 --- a/js/ui/modalDialog.js +++ b/js/ui/modalDialog.js @@ -282,7 +282,7 @@ var ModalDialog = GObject.registerClass({ opacity: 0, duration: FADE_OUT_DIALOG_TIME, mode: Clutter.AnimationMode.EASE_OUT_QUAD, - onComplete: () => (this.state = State.FADED_OUT), + onComplete: () => this._setState(State.FADED_OUT), }); } }); |