From 0b2cc85c7fb3fc643aae70ef98c74a70e88592f9 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sat, 2 Jul 2022 21:52:57 +0200 Subject: [PATCH] Revert "Change default wallet dir to AppDataLocation" This reverts commit 78ef5cbe6b2661ba982e9d386a344b42cce339fa. --- src/utils/Utils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index f241f0b..b0ebbb8 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() {