From 78ef5cbe6b2661ba982e9d386a344b42cce339fa Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 4 Mar 2022 13:34:33 +0100 Subject: [PATCH] Change default wallet dir to AppDataLocation --- src/utils/Utils.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index 157f415..0240ac4 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() {