mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
commit
3f64312283
1 changed files with 1 additions and 9 deletions
|
@ -194,15 +194,7 @@ int main(int argc, char *argv[])
|
||||||
QDir::setCurrent(QDir(MacOSHelper::bundlePath() + QDir::separator() + "..").canonicalPath());
|
QDir::setCurrent(QDir(MacOSHelper::bundlePath() + QDir::separator() + "..").canonicalPath());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (MoneroSettings::portableConfigExists())
|
qputenv("QML_DISABLE_DISK_CACHE", "1");
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MainApp app(argc, argv);
|
MainApp app(argc, argv);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue