From 486ba05526e2ece353da21d8a2100f614704856c Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 9 Dec 2020 14:29:02 +0000 Subject: [PATCH] main: disable QML cache --- src/main/main.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/main.cpp b/src/main/main.cpp index 79e172ca..3137ec7d 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -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);