Haltroy / Yorot.Avalonia

A web browser.
MIT License
1 stars 0 forks source link

New Window #7

Closed Haltroy closed 1 year ago

Haltroy commented 2 years ago

When clicking on "New Window" button, the new window never shows up. However, YorotGlobal.Main.MainForms does indicate that it is created.

Creating a new window in Avalonia is easy and the current implementation should work. However, Yorot does not uses the Avalonia's lifetime but CefNet's custom LifeTime when launching the program. So it's in the suspect list. Gonna try with both default and CefNet lifetime.

Found the problem, setting IsVisible and IsEnabled before showing it caused Avalonia to nah this thing is already visible no need to re-show it twice and not do anything. Fixed.