mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-22 06:54:44 +00:00
add App.Ready event
This commit is contained in:
@@ -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[] {
|
||||
|
||||
Reference in New Issue
Block a user