mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
closeDialog: Close existing dialogs on shutdown
Otherwise mutter will request to hide the dialog when the meta
context is destroyed, but at the JS context has already shut down,
resulting in a crash.
Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7328
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3117>
(cherry picked from commit 17b7162121)
This commit is contained in:
parent
b715bb9fde
commit
094d8954cb
1 changed files with 3 additions and 0 deletions
|
|
@ -162,6 +162,9 @@ var CloseDialog = GObject.registerClass({
|
|||
this._addWindowEffect();
|
||||
this._initDialog();
|
||||
|
||||
global.connectObject(
|
||||
'shutdown', () => this._onWait(), this._dialog);
|
||||
|
||||
this._dialog._dialog.scale_y = 0;
|
||||
this._dialog._dialog.set_pivot_point(0.5, 0.5);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue