From: tobtoht Date: Fri, 4 Mar 2022 12:34:33 +0000 (+0100) Subject: Change default wallet dir to AppDataLocation X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=78ef5cbe6b2661ba982e9d386a344b42cce339fa;p=gamesguru%2Ffeather.git Change default wallet dir to AppDataLocation --- diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index 157f4152..0240ac44 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -123,11 +123,7 @@ QString defaultWalletDir() { return path; } -#if defined(Q_OS_LINUX) or defined(Q_OS_MAC) - return QString("%1/Monero/wallets").arg(QDir::homePath()); -#elif defined(Q_OS_WIN) - return QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation) + "/Monero/wallets"; -#endif + return QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "/wallets"; } QString applicationPath() {