mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 04:24:47 +02:00
Merge pull request #13336 from Atlante45/fix/ual-default-rc68
Set UAL default value earlier to be caught by crashpad - RC68
This commit is contained in:
commit
0cadb95d62
2 changed files with 8 additions and 9 deletions
|
@ -1443,17 +1443,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
||||||
// add firstRun flag from settings to launch event
|
// add firstRun flag from settings to launch event
|
||||||
Setting::Handle<bool> firstRun { Settings::firstRun, true };
|
Setting::Handle<bool> firstRun { Settings::firstRun, true };
|
||||||
|
|
||||||
// once the settings have been loaded, check if we need to flip the default for UserActivityLogger
|
|
||||||
auto& userActivityLogger = UserActivityLogger::getInstance();
|
|
||||||
if (!userActivityLogger.isDisabledSettingSet()) {
|
|
||||||
// the user activity logger is opt-out for Interface
|
|
||||||
// but it's defaulted to disabled for other targets
|
|
||||||
// so we need to enable it here if it has never been disabled by the user
|
|
||||||
userActivityLogger.disable(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
QString machineFingerPrint = uuidStringWithoutCurlyBraces(FingerprintUtils::getMachineFingerprint());
|
QString machineFingerPrint = uuidStringWithoutCurlyBraces(FingerprintUtils::getMachineFingerprint());
|
||||||
|
|
||||||
|
auto& userActivityLogger = UserActivityLogger::getInstance();
|
||||||
if (userActivityLogger.isEnabled()) {
|
if (userActivityLogger.isEnabled()) {
|
||||||
// sessionRunTime will be reset soon by loadSettings. Grab it now to get previous session value.
|
// sessionRunTime will be reset soon by loadSettings. Grab it now to get previous session value.
|
||||||
// The value will be 0 if the user blew away settings this session, which is both a feature and a bug.
|
// The value will be 0 if the user blew away settings this session, which is both a feature and a bug.
|
||||||
|
|
|
@ -81,6 +81,13 @@ int main(int argc, const char* argv[]) {
|
||||||
|
|
||||||
// Instance UserActivityLogger now that the settings are loaded
|
// Instance UserActivityLogger now that the settings are loaded
|
||||||
auto& ual = UserActivityLogger::getInstance();
|
auto& ual = UserActivityLogger::getInstance();
|
||||||
|
// once the settings have been loaded, check if we need to flip the default for UserActivityLogger
|
||||||
|
if (!ual.isDisabledSettingSet()) {
|
||||||
|
// the user activity logger is opt-out for Interface
|
||||||
|
// but it's defaulted to disabled for other targets
|
||||||
|
// so we need to enable it here if it has never been disabled by the user
|
||||||
|
ual.disable(false);
|
||||||
|
}
|
||||||
qDebug() << "UserActivityLogger is enabled:" << ual.isEnabled();
|
qDebug() << "UserActivityLogger is enabled:" << ual.isEnabled();
|
||||||
|
|
||||||
if (ual.isEnabled()) {
|
if (ual.isEnabled()) {
|
||||||
|
|
Loading…
Reference in a new issue