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>
This commit is contained in:
Joan Torres 2023-05-09 18:36:40 +02:00
parent 356bab1121
commit c57f4a1c73

View File

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