diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 1d97bf5a88..a4b8b31844 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -942,7 +942,10 @@ UI::EventReturn MainScreen::OnForums(UI::EventParams &e) { UI::EventReturn MainScreen::OnExit(UI::EventParams &e) { System_SendMessage("event", "exitprogram"); +#ifndef USING_WIN_UI NativeShutdown(); +#endif + globalUIState = UISTATE_EXIT; return UI::EVENT_DONE; }