Drop workaround via DescriptinoAttribute: No longer needed

This commit is contained in:
softworkz
2025-11-22 00:03:18 +01:00
parent 6761119241
commit 77834d0f2e
6 changed files with 8 additions and 43 deletions

View File

@@ -539,7 +539,7 @@ namespace ElectronNET.API
using (cancellationToken.Register(() => taskCompletionSource.TrySetCanceled()))
{
BridgeConnector.Socket.Once<string>("appGetPathCompleted", taskCompletionSource.SetResult);
BridgeConnector.Socket.Emit("appGetPath", pathName.GetDescription());
BridgeConnector.Socket.Emit("appGetPath", pathName);
return await taskCompletionSource.Task
.ConfigureAwait(false);
@@ -560,7 +560,7 @@ namespace ElectronNET.API
/// </summary>
public void SetPath(PathName name, string path)
{
this.CallMethod2(name.GetDescription(), path);
this.CallMethod2(name, path);
}
/// <summary>