1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-25 10:47:19 +01:00

main: disable QML cache

This commit is contained in:
xiphon 2020-12-09 14:29:02 +00:00
parent 96f9c11320
commit 486ba05526

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);