Updated repo

This commit is contained in:
Florian Rappl
2025-11-01 10:44:49 +01:00
parent 14f43f4574
commit 8df9eff3bc
12 changed files with 31 additions and 10 deletions

View File

@@ -106,7 +106,9 @@ public class BrowserWindow
_close -= value;
if (_close == null)
{
BridgeConnector.Socket.Off("browserWindow-close" + Id);
}
}
}
@@ -137,7 +139,9 @@ public class BrowserWindow
_closed -= value;
if (_closed == null)
{
BridgeConnector.Socket.Off("browserWindow-closed" + Id);
}
}
}

View File

@@ -48,7 +48,7 @@ namespace ElectronNET.API
public Task<string[]> ShowOpenDialogAsync(BrowserWindow browserWindow, OpenDialogOptions options)
{
var taskCompletionSource = new TaskCompletionSource<string[]>();
string guid = Guid.NewGuid().ToString();
var guid = Guid.NewGuid().ToString();
BridgeConnector.Socket.On("showOpenDialogComplete" + guid, (filePaths) =>
{
@@ -75,7 +75,7 @@ namespace ElectronNET.API
public Task<string> ShowSaveDialogAsync(BrowserWindow browserWindow, SaveDialogOptions options)
{
var taskCompletionSource = new TaskCompletionSource<string>();
string guid = Guid.NewGuid().ToString();
var guid = Guid.NewGuid().ToString();
BridgeConnector.Socket.On("showSaveDialogComplete" + guid, (filename) =>
{

View File

@@ -30,7 +30,7 @@ public class PrintToPDFOptions
/// `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
/// `height` and `width` in inches. Defaults to `Letter`.
/// </summary>
public string PageSize { get; set; } = "Letter";
public object PageSize { get; set; } = "Letter";
/// <summary>
/// Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string,