Skip to content

Commit f6f67b5

Browse files
fix build problems
1 parent 50dfeff commit f6f67b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ElectronNET-API-Demos/Controllers/ProgressBarController.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ public IActionResult Index()
1010
{
1111
if (HybridSupport.IsElectronActive)
1212
{
13-
Electron.IpcMain.On("set-progress-bar", async (args) =>
13+
Electron.IpcMain.On("set-progress-bar", (args) =>
1414
{
1515
var mainWindow = Electron.WindowManager.BrowserWindows.First();
16-
mainWindow.SetProgressBar(0.5);
16+
mainWindow.SetProgressBar(5);
1717
});
1818

19-
Electron.IpcMain.On("clear-progress-bar", async (args) =>
19+
Electron.IpcMain.On("clear-progress-bar", (args) =>
2020
{
2121
var mainWindow = Electron.WindowManager.BrowserWindows.First();
2222
mainWindow.SetProgressBar(-1);

0 commit comments

Comments
 (0)