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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2545>
This commit is contained in:
Florian Müllner 2022-11-11 15:35:12 +01:00
parent b2ff25b31d
commit 14f061ffab

View File

@ -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(