polkitAgent: Fix closing dialog properly

When pressing the close button on the dialog the polkit request isn't
completed leaving the polkit agent blocked unable to handle new
requests.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2761>
(cherry picked from commit c57f4a1c73)
This commit is contained in:
Joan Torres 2023-05-09 18:36:40 +02:00 committed by Florian Müllner
parent 2a6306c498
commit 2dc00b9c0e

View file

@ -391,7 +391,6 @@ var AuthenticationDialog = GObject.registerClass({
}
cancel() {
this.close(global.get_current_time());
this._emitDone(true);
}