From: tobtoht Date: Sat, 2 Jul 2022 19:52:57 +0000 (+0200) Subject: Revert "Change default wallet dir to AppDataLocation" X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=0b2cc85c7fb3fc643aae70ef98c74a70e88592f9;p=gamesguru%2Ffeather.git Revert "Change default wallet dir to AppDataLocation" This reverts commit 78ef5cbe6b2661ba982e9d386a344b42cce339fa. --- diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index f241f0b6..b0ebbb83 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -149,7 +149,11 @@ QString defaultWalletDir() { return path; } - return QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "/wallets"; +#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 } QString ringDatabasePath() {