Update to the native Electron 9.0.0 - Update electron-updater 4.3.1 - Update Changelog

This commit is contained in:
Gregor Biswanger
2020-05-23 12:17:53 +02:00
parent 95f9a59431
commit 95acbd5dea
14 changed files with 81 additions and 54 deletions

View File

@@ -63,18 +63,18 @@ namespace ElectronNET.API
/// </summary>
/// <param name="fullPath"></param>
/// <returns>Whether the item was successfully opened.</returns>
public Task<bool> OpenItemAsync(string fullPath)
public Task<bool> OpenPathAsync(string fullPath)
{
var taskCompletionSource = new TaskCompletionSource<bool>();
BridgeConnector.Socket.On("shell-openItemCompleted", (success) =>
BridgeConnector.Socket.On("shell-openPathCompleted", (success) =>
{
BridgeConnector.Socket.Off("shell-openItemCompleted");
BridgeConnector.Socket.Off("shell-openPathCompleted");
taskCompletionSource.SetResult((bool)success);
});
BridgeConnector.Socket.Emit("shell-openItem", fullPath);
BridgeConnector.Socket.Emit("shell-openPath", fullPath);
return taskCompletionSource.Task;
}