Merge pull request #362 from lnussel/qml

Add compile time options for telemetry and updates
This commit is contained in:
maxnet 2022-03-24 17:49:16 +01:00 committed by GitHub
commit d2a92383b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 2 deletions

View file

@ -1006,6 +1006,8 @@ bool ImageWriter::getBoolSetting(const QString &key)
return _settings.value(key, TELEMETRY_ENABLED_DEFAULT).toBool();
else if (key == "eject")
return _settings.value(key, true).toBool();
else if (key == "check_version")
return _settings.value(key, CHECK_VERSION_DEFAULT).toBool();
else
return _settings.value(key).toBool();
}