mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 17:04:20 +02:00
Added the no-login option.
This commit is contained in:
parent
e00c9333c6
commit
f0dd07294e
1 changed files with 23 additions and 17 deletions
|
@ -2337,6 +2337,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
||||||
connect(&AndroidHelper::instance(), &AndroidHelper::enterForeground, this, &Application::enterForeground);
|
connect(&AndroidHelper::instance(), &AndroidHelper::enterForeground, this, &Application::enterForeground);
|
||||||
AndroidHelper::instance().notifyLoadComplete();
|
AndroidHelper::instance().notifyLoadComplete();
|
||||||
#else
|
#else
|
||||||
|
// Do not show login dialog if requested not to on the command line
|
||||||
|
const QString HIFI_NO_LOGIN_COMMAND_LINE_KEY = "--no-login-suggestion";
|
||||||
|
int index = arguments().indexOf(HIFI_NO_LOGIN_COMMAND_LINE_KEY);
|
||||||
|
if (index == -1) {
|
||||||
|
// request not found
|
||||||
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);
|
||||||
|
@ -2354,6 +2359,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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue