Function closeSplashScreen

  • Closes and destroys the splash screen window. Safely checks if the window exists and hasn't already been destroyed.

    Returns void

    function closeSplashScreen() {
    if (splashWindow && !splashWindow.isDestroyed()) {
    console.info("[Main] 🎨 Closing splash screen");
    splashWindow.close();
    splashWindow = null;
    }
    }