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:
parent
b2ff25b31d
commit
14f061ffab
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user