mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Using OnReadyToShow to display the main window in Blazor does not seem to work with Show set to false #440
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 @Dotneteer on GitHub (Jan 4, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
ElectronNET version: 7.30.2
.NET Core 3.0.1 (produces the same issue with v3.1.0)
(project that reproduces the behavior is attached)
BlazorOnReadyToShowIssue.zip
Create an ElectronNET based Blazor project with the standard steps
mkdir BlazorOnReadyIssuecd BlazorOnReadyIssuedotnet new blazorserver --no-httpsdotnet add package ElectronNET.APIdotnet new tool-manifestdotnet tool install ElectronNET.CLIdotnet electronize initProgram.cs:Startup.cs:electronize start)Expected behavior: The Electron Shell window is displayed with the Blazor App.
Issue: The Electron Shell window does not display.
Whenever I change the
Showproperty ofBrowserWindopOptionstotrue, the project works fine, but, of course, for a few seconds an empty page is displayed according to the normal behavior.@MaximeTasset commented on GitHub (Jan 31, 2020):
I don't understand why is it not possible to hook to the event via the option, it will be simpler to not have raise condition like that. Am I right?
PS: By the way, I Have the same issue even with version 5.30.1
@Dotneteer commented on GitHub (Jan 31, 2020):
I'm a bit concerned that the owners of the project are pretty passive since the beginning of December 2019 :-(. This is not what a project with 4.2k stars deserves.
@Charnock commented on GitHub (Apr 4, 2020):
I was experiencing the same problem on version 7.30.2 and got the expected behavior with this.
@GregorBiswanger commented on GitHub (Apr 18, 2020):
@Dotneteer We authors are both fathers at the moment.. and are therefore a bit limited in time.. I will work on a new version for the days.. But you can also support or sponsor us with pull requests :)
I'll take a closer look at your problem.
@FQLin commented on GitHub (Apr 21, 2020):
I have the same problem on version 7.30.2,but netcoreapp5.0 priview project.
@GregorBiswanger commented on GitHub (Apr 21, 2020):
Fixed in the next Electron.NET Version 8.31.1.