portable mode: reset wallet dir on start

This commit is contained in:
tobtoht
2023-01-26 16:21:18 +01:00
parent 7f07f98f92
commit 15aea81ea4
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
// Setup wallet directory
QString walletDir = config()->get(Config::walletDirectory).toString();
if (walletDir.isEmpty()) {
if (walletDir.isEmpty() || Utils::isPortableMode()) {
walletDir = Utils::defaultWalletDir();
config()->set(Config::walletDirectory, walletDir);
}