private void Engine_TerminateEvent() { AppContext.ExitThread(); if (GuiUtils.IsUnix()) { System.Windows.Forms.Application.Exit(); } //Application.Exit(); // Removed in 2.12, otherwise lock Core thread. Still required in Linux edition. }
private void Engine_TerminateEvent() { if (SplashWindow != null) { SplashWindow.RequestClose(); } if (MainWindow != null) { MainWindow.RequestClose(); } if (AppContext != null) { AppContext.ExitThread(); } if (GuiUtils.IsUnix()) { System.Windows.Forms.Application.Exit(); } //Application.Exit(); // Removed in 2.12, otherwise lock Core thread. Still required in Linux edition. }