From 66211962660bc47ae8d895a6f327e88cd16fb624 Mon Sep 17 00:00:00 2001 From: Deve Date: Tue, 13 Mar 2018 21:22:21 +0100 Subject: [PATCH] Don't close STK after login screen --- src/main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 68f75a0fb..1d8b69ca9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1746,12 +1746,10 @@ int main(int argc, char *argv[] ) // so we immediately start the main menu (unless it was requested // to always show the login screen). Otherwise show the login // screen first. - if(PlayerManager::getCurrentPlayer() && ! + MainMenuScreen::getInstance()->push(); + + if (!PlayerManager::getCurrentPlayer() || UserConfigParams::m_always_show_login_screen) - { - MainMenuScreen::getInstance()->push(); - } - else { UserScreen::getInstance()->push(); // If there is no player, push the RegisterScreen on top of