From 14f061ffab11156691379e6a4ead6f6e558160ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 11 Nov 2022 15:35:12 +0100 Subject: [PATCH] status/network: Fix handling portal result Commit 637ee7386e accidentally dropped all parameters from the method invocation when changing a .bind() handler to an arrow function. Part-of: --- js/ui/status/network.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 37ef97784..6d21e2d59 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1998,7 +1998,7 @@ class Indicator extends SystemIndicator { this._portalHelperProxy?.CloseAsync(path); } - async _portalHelperDone(proxy, emitter, parameters) { + async _portalHelperDone(parameters) { let [path, result] = parameters; if (result == PortalHelperResult.CANCELLED) { @@ -2051,7 +2051,9 @@ class Indicator extends SystemIndicator { g_interface_info: PortalHelperInfo, }); this._portalHelperProxy.connectSignal('Done', - () => this._portalHelperDone().catch(logError)); + (proxy, emitter, params) => { + this._portalHelperDone(params).catch(logError); + }); try { await this._portalHelperProxy.init_async(