Don't popup login dialog in android

This commit is contained in:
Gabriel Calero 2018-09-14 14:40:30 -03:00
parent 4378f5bf1c
commit 72eeeac2ba

View file

@ -2302,8 +2302,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
connect(&AndroidHelper::instance(), &AndroidHelper::enterBackground, this, &Application::enterBackground); connect(&AndroidHelper::instance(), &AndroidHelper::enterBackground, this, &Application::enterBackground);
connect(&AndroidHelper::instance(), &AndroidHelper::enterForeground, this, &Application::enterForeground); connect(&AndroidHelper::instance(), &AndroidHelper::enterForeground, this, &Application::enterForeground);
AndroidHelper::instance().notifyLoadComplete(); AndroidHelper::instance().notifyLoadComplete();
#endif #else
static int CHECK_LOGIN_TIMER = 3000; static int CHECK_LOGIN_TIMER = 3000;
QTimer* checkLoginTimer = new QTimer(this); QTimer* checkLoginTimer = new QTimer(this);
checkLoginTimer->setInterval(CHECK_LOGIN_TIMER); checkLoginTimer->setInterval(CHECK_LOGIN_TIMER);
@ -2321,6 +2320,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
}); });
Setting::Handle<bool>{"loginDialogPoppedUp", false}.set(false); Setting::Handle<bool>{"loginDialogPoppedUp", false}.set(false);
checkLoginTimer->start(); checkLoginTimer->start();
#endif
} }
void Application::updateVerboseLogging() { void Application::updateVerboseLogging() {