Skip to content
Merged
9 changes: 8 additions & 1 deletion ElectronNET.API/Dialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Web;

namespace ElectronNET.API
{
Expand Down Expand Up @@ -54,7 +56,12 @@ public Task<string[]> ShowOpenDialogAsync(BrowserWindow browserWindow, OpenDialo
BridgeConnector.Socket.Off("showOpenDialogComplete" + guid);

var result = ((JArray)filePaths).ToObject<string[]>();
taskCompletionSource.SetResult(result);
var list = new List<string>();
foreach (var item in result)
{
list.Add(HttpUtility.UrlDecode(item));
}
taskCompletionSource.SetResult(list.ToArray());
});


Expand Down
4 changes: 3 additions & 1 deletion ElectronNET.API/ElectronNET.API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This package contains the API to access the "native" electron API.</Description>
<PackageTags>electron aspnetcore</PackageTags>
<PackageReleaseNotes>Changelog: https://github.com/ElectronNET/Electron.NET/blob/master/Changelog.md</PackageReleaseNotes>
<PackageIconUrl>https://raw.githubusercontent.com/ElectronNET/Electron.NET/master/assets/images/electron.net-logo-square.png</PackageIconUrl>
<Version>1.0.0.2</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -31,8 +32,9 @@ This package contains the API to access the "native" electron API.</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EngineIoClientDotNet" Version="1.0.7.2" />
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.0.0" />
<PackageReference Include="SocketIoClientDotNet" Version="1.0.3" />
<PackageReference Include="SocketIoClientDotNet" Version="1.0.7.2" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(OS)' == 'Windows_NT'">
Expand Down
1 change: 1 addition & 0 deletions ElectronNET.API/IpcMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ internal static IpcMain Instance
public void On(string channel, Action<object> listener)
{
BridgeConnector.Socket.Emit("registerIpcMainChannel", channel);
BridgeConnector.Socket.Off(channel);
BridgeConnector.Socket.On(channel, (args) =>
{
List<object> objectArray = FormatArguments(args);
Expand Down
2 changes: 1 addition & 1 deletion ElectronNET.CLI/ElectronNET.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageOutputPath>..\artifacts</PackageOutputPath>
<PackageId>ElectronNET.CLI</PackageId>
<Version>1.0.0</Version>
<Version>1.0.4.2</Version>
<Authors>Gregor Biswanger, Robert Muehsig</Authors>
<Product>Electron.NET</Product>
<Company />
Expand Down
68 changes: 34 additions & 34 deletions ElectronNET.Host/api/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading