diff --git a/ElectronNET.API/App.cs b/ElectronNET.API/App.cs index 793bb2a..e8b7d72 100644 --- a/ElectronNET.API/App.cs +++ b/ElectronNET.API/App.cs @@ -1338,6 +1338,13 @@ namespace ElectronNET.API /// The handler public void Once(string eventName, Action fn) => Events.Instance.Once(ModuleName, eventName, fn); + + /// + /// If you're using a splashscreen in the electron.manifest.json, the window will ony be fully destroyed once you call this method once. + /// You should only do this after creating another window, to avoid a bug where the Electron renderer process frezees till any window interaction. + /// + public void DestroySplashScreen() => BridgeConnector.Emit("splashscreen-destroy"); + private readonly JsonSerializer _jsonSerializer = new JsonSerializer() { ContractResolver = new CamelCasePropertyNamesContractResolver()