Skip to content

Commit 33ac4ed

Browse files
Merge pull request #758 from cosmo0/patch-1
Fixes issue #735 - paths are URL escaped
2 parents 437404d + 1ae2f1d commit 33ac4ed

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ElectronNET.API/Dialog.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ public Task<string[]> ShowOpenDialogAsync(BrowserWindow browserWindow, OpenDialo
5555
BridgeConnector.Socket.Off("showOpenDialogComplete" + guid);
5656

5757
var result = ((JArray)filePaths).ToObject<string[]>();
58-
var list = new List<string>();
59-
foreach (var item in result)
60-
{
61-
list.Add(HttpUtility.UrlDecode(item));
62-
}
63-
taskCompletionSource.SetResult(list.ToArray());
58+
taskCompletionSource.SetResult(result);
6459
});
6560

6661

0 commit comments

Comments
 (0)