mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-12 21:25:06 +00:00
ShowItemInFolderAsync: Fix endless hang
This commit is contained in:
@@ -42,13 +42,9 @@ namespace ElectronNET.API
|
||||
/// <param name="fullPath">The full path to the directory / file.</param>
|
||||
public Task ShowItemInFolderAsync(string fullPath)
|
||||
{
|
||||
var tcs = new TaskCompletionSource<object>();
|
||||
|
||||
// Is this really useful?
|
||||
BridgeConnector.Socket.Once("shell-showItemInFolderCompleted", () => { });
|
||||
BridgeConnector.Socket.Emit("shell-showItemInFolder", fullPath);
|
||||
|
||||
return tcs.Task;
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user