ShowItemInFolderAsync: Fix endless hang

This commit is contained in:
softworkz
2025-11-17 13:57:54 +01:00
parent 9e9558b837
commit 2e5c6200a6

View File

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