diff options
| author | xiphon <xiphon@protonmail.com> | 2020-12-09 14:29:02 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-12-09 14:29:02 +0000 |
| commit | 486ba05526e2ece353da21d8a2100f614704856c (patch) | |
| tree | f4fd1c63fb96dd50de034c74edb3d9ebc379406b /src/main/main.cpp | |
| parent | 96f9c11320ee3c4f1f1c35f3ac8e8f78340bd378 (diff) | |
| download | monzero-gui-486ba05526e2ece353da21d8a2100f614704856c.tar.gz monzero-gui-486ba05526e2ece353da21d8a2100f614704856c.tar.xz monzero-gui-486ba05526e2ece353da21d8a2100f614704856c.zip | |
main: disable QML cache
Diffstat (limited to 'src/main/main.cpp')
| -rw-r--r-- | src/main/main.cpp | 10 |
1 files changed, 1 insertions, 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); |
