mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
How to Display Electron progressbar modal in Electron.NET API ? #753
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SheltonAlves on GitHub (Jan 6, 2022).
I have asp.net core application and I use ElectronNET.API.Electron.AutoUpdater to check for update at initial app start and I display electron Dialog when Update is available .
I need to show the download progress in electron dialog is it possible?
How do I display download progress in modal from startup.cs page?
Code :
ElectronNET.API.Electron.AutoUpdater.OnUpdateNotAvailable += async e => await OnUpdateNotAvailable(e);
ElectronNET.API.Electron.AutoUpdater.OnUpdateAvailable += async e => await OnUpdateAvailable(e);
ElectronNET.API.Electron.AutoUpdater.OnError += async e => await OnInstallUpdateFailed(e);
@danatcofo commented on GitHub (Jan 6, 2022):
You will have to creat the page like a standard window and then send your messages to it like any other to show progress. None of this is out of the box unless there is something built into electron itself you can leverage. I don't think there is but I'm certainly not an electron expert.