Merge pull request #3262

486ba055 main: disable QML cache (xiphon)
This commit is contained in:
Alexander Blair 2020-12-10 17:59:09 -08:00
commit 3f64312283
No known key found for this signature in database
GPG key ID: C64552D877C32479

View file

@ -194,15 +194,7 @@ int main(int argc, char *argv[])
QDir::setCurrent(QDir(MacOSHelper::bundlePath() + QDir::separator() + "..").canonicalPath());
#endif
if (MoneroSettings::portableConfigExists())
{
const QString cacheDir(MoneroSettings::portableFolderName() + QDir::separator() + ".cache");
if (!qputenv("QML_DISK_CACHE_PATH", cacheDir.toUtf8()))
{
qCritical() << "Error: failed to set QML disk cache path";
return 1;
}
}
qputenv("QML_DISABLE_DISK_CACHE", "1");
MainApp app(argc, argv);