Update Shell.cs

This commit is contained in:
Konstantin Gross
2020-05-27 01:06:31 +02:00
committed by GitHub
parent ce4ef03636
commit c5c822a028

View File

@@ -101,7 +101,7 @@ namespace ElectronNET.API
{
BridgeConnector.Socket.Off("shell-openExternalCompleted");
taskCompletionSource.SetResult((string)error);
taskCompletionSource.SetResult((string) error);
});
if (options == null)
@@ -161,7 +161,7 @@ namespace ElectronNET.API
{
BridgeConnector.Socket.Off("shell-writeShortcutLinkCompleted");
taskCompletionSource.SetResult((bool)success);
taskCompletionSource.SetResult((bool) success);
});
BridgeConnector.Socket.Emit("shell-writeShortcutLink", shortcutPath, operation.GetDescription(), JObject.FromObject(options, _jsonSerializer));
@@ -201,4 +201,4 @@ namespace ElectronNET.API
DefaultValueHandling = DefaultValueHandling.Ignore
};
}
}
}