add App.Ready event

This commit is contained in:
Gregor Biswanger
2020-05-24 18:50:35 +02:00
parent 1541553ed1
commit c552a04347
2 changed files with 24 additions and 2 deletions

View File

@@ -11,9 +11,13 @@ namespace ElectronNET.WebApp.Controllers
{
if (HybridSupport.IsElectronActive)
{
if (Electron.App.IsReady)
if(Electron.App.IsReady)
{
CreateContextMenu();
}
else
{
Electron.App.Ready += () => CreateContextMenu();
}
var menu = new MenuItem[] {