Fix release tests (#4063)

This commit is contained in:
olegshtch 2020-08-13 17:18:01 +03:00 committed by GitHub
parent 80f613a77a
commit 44297dcd1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 1114 additions and 697 deletions

View file

@ -6,10 +6,13 @@
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QGlobalStatic>
#include <QSettings>
#include <QStandardPaths>
#include <utility>
Q_GLOBAL_STATIC(SettingsCache, settingsCache);
QString SettingsCache::getDataPath()
{
if (isPortableBuild)
@ -967,3 +970,8 @@ void SettingsCache::setMaxFontSize(int _max)
maxFontSize = _max;
settings->setValue("game/maxfontsize", maxFontSize);
}
SettingsCache &SettingsCache::instance()
{
return *settingsCache;
}