Closes and destroys the splash screen window. Safely checks if the window exists and hasn't already been destroyed.
function closeSplashScreen() { if (splashWindow && !splashWindow.isDestroyed()) { console.info("[Main] 🎨 Closing splash screen"); splashWindow.close(); splashWindow = null; }} Copy
function closeSplashScreen() { if (splashWindow && !splashWindow.isDestroyed()) { console.info("[Main] 🎨 Closing splash screen"); splashWindow.close(); splashWindow = null; }}
Closes and destroys the splash screen window. Safely checks if the window exists and hasn't already been destroyed.