]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Revert "Change default wallet dir to AppDataLocation"
authortobtoht <thotbot@protonmail.com>
Sat, 2 Jul 2022 19:52:57 +0000 (21:52 +0200)
committertobtoht <thotbot@protonmail.com>
Sat, 2 Jul 2022 19:52:57 +0000 (21:52 +0200)
This reverts commit 78ef5cbe6b2661ba982e9d386a344b42cce339fa.

src/utils/Utils.cpp

index f241f0b689bbc5df409e5a8c2f0ba89b464dfac6..b0ebbb83cb84e6b644e6943cc671acac466ec0c3 100644 (file)
@@ -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() {