ElectronNET.WebApp: Adjust controllers for API changes

This commit is contained in:
softworkz
2025-10-13 14:15:47 +02:00
parent 667a1b290e
commit 78b59f62c9
3 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ namespace ElectronNET.WebApp.Controllers
{
Electron.IpcMain.On("process-crash", async (args) =>
{
string viewPath = $"http://localhost:{BridgeSettings.WebPort}/crashhang/processcrash";
string viewPath = $"http://localhost:{ElectronNetRuntime.AspNetWebPort}/crashhang/processcrash";
var browserWindow = await Electron.WindowManager.CreateWindowAsync(viewPath);
browserWindow.WebContents.OnCrashed += async (killed) =>
@@ -38,7 +38,7 @@ namespace ElectronNET.WebApp.Controllers
Electron.IpcMain.On("process-hang", async (args) =>
{
string viewPath = $"http://localhost:{BridgeSettings.WebPort}/crashhang/processhang";
string viewPath = $"http://localhost:{ElectronNetRuntime.AspNetWebPort}/crashhang/processhang";
var browserWindow = await Electron.WindowManager.CreateWindowAsync(viewPath);
browserWindow.OnUnresponsive += async () =>

View File

@@ -27,7 +27,7 @@ namespace ElectronNET.WebApp.Controllers
Electron.IpcMain.On("error-dialog", (args) =>
{
Electron.Dialog.ShowErrorBox("An Error Message", "Demonstrating an error message.");
Electron.Dialog.ShowErrorBox("An Error Message", "Demonstrating a really great message.");
});
Electron.IpcMain.On("information-dialog", async (args) =>

View File

@@ -11,7 +11,7 @@ namespace ElectronNET.WebApp.Controllers
{
if (HybridSupport.IsElectronActive)
{
string viewPath = $"http://localhost:{BridgeSettings.WebPort}/windows/demowindow";
string viewPath = $"http://localhost:{ElectronNetRuntime.AspNetWebPort}/windows/demowindow";
Electron.IpcMain.On("new-window", async (args) =>
{