Skip to content

Commit

Permalink
polkitAuthenticationAgent.js: Only close the dialog once.
Browse files Browse the repository at this point in the history
Remove the self.close() call, as close is also called by the
AuthenticationAgent.
  • Loading branch information
mtwebster committed Jan 1, 2025
1 parent 4e87c99 commit 09b9d13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/ui/polkitAuthenticationAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,6 @@ var AuthenticationDialog = GObject.registerClass({
cancel() {
this._wasDismissed = true;
this._emitDone(true);
this.close(global.get_current_time());
}

_onDialogClosed() {
Expand Down Expand Up @@ -532,7 +531,7 @@ var AuthenticationAgent = class {
}

_completeRequest(dismissed) {
this._currentDialog.close();
this._currentDialog.close(global.get_current_time());
this._currentDialog = null;

this._native.complete(dismissed);
Expand Down

0 comments on commit 09b9d13

Please sign in to comment.