mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 00:28:34 +02:00
Log on first login
This commit is contained in:
parent
b252139704
commit
9f8848e833
1 changed files with 12 additions and 2 deletions
|
@ -144,9 +144,19 @@ int main(int argc, const char* argv[]) {
|
||||||
Application app(argc, const_cast<char**>(argv), startupTime);
|
Application app(argc, const_cast<char**>(argv), startupTime);
|
||||||
|
|
||||||
// If we failed the OpenGLVersion check, log it.
|
// If we failed the OpenGLVersion check, log it.
|
||||||
// This needed to wait until the Application ctor for credentials.
|
|
||||||
if (override) {
|
if (override) {
|
||||||
UserActivityLogger::getInstance().insufficientGLVersion(glVersion);
|
auto& accountManager = AccountManager::getInstance();
|
||||||
|
if (accountManager.isLoggedIn()) {
|
||||||
|
UserActivityLogger::getInstance().insufficientGLVersion(glVersion);
|
||||||
|
} else {
|
||||||
|
QObject::connect(&AccountManager::getInstance(), &AccountManager::loginComplete, [glVersion](){
|
||||||
|
static bool loggedInsufficientGL = false;
|
||||||
|
if (!loggedInsufficientGL) {
|
||||||
|
UserActivityLogger::getInstance().insufficientGLVersion(glVersion);
|
||||||
|
loggedInsufficientGL = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup local server
|
// Setup local server
|
||||||
|
|
Loading…
Reference in a new issue