From d1d43a871d0b073dc01da2bb0663fc946be7f058 Mon Sep 17 00:00:00 2001 From: Totto16 Date: Thu, 28 Mar 2024 17:55:14 +0100 Subject: [PATCH] modalDialog: Remove timestamp parameter from close() invocations Part-of: --- js/ui/components/networkAgent.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js index aad9ecf4f..f7d57466d 100644 --- a/js/ui/components/networkAgent.js +++ b/js/ui/components/networkAgent.js @@ -145,14 +145,14 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog { if (valid) { this._agent.respond(this._requestId, Shell.NetworkAgentResponse.CONFIRMED); - this.close(global.get_current_time()); + this.close(); } // do nothing if not valid } cancel() { this._agent.respond(this._requestId, Shell.NetworkAgentResponse.USER_CANCELED); - this.close(global.get_current_time()); + this.close(); } _validateWpaPsk(secret) { @@ -495,7 +495,7 @@ class VPNRequestHandler extends Signals.EventEmitter { this._agent.respond(this._requestId, Shell.NetworkAgentResponse.USER_CANCELED); if (this._newStylePlugin && this._shellDialog) { - this._shellDialog.close(global.get_current_time()); + this._shellDialog.close(); this._shellDialog.destroy(); } else { try { @@ -823,7 +823,7 @@ class NetworkAgent { _cancelRequest(agent, requestId) { if (this._dialogs[requestId]) { - this._dialogs[requestId].close(global.get_current_time()); + this._dialogs[requestId].close(); this._dialogs[requestId].destroy(); delete this._dialogs[requestId]; } else if (this._vpnRequests[requestId]) {