Default walletdir is wallets/ if it exists
This commit is contained in:
1 parent
d9878890e4
commit
9587a9c12b
1 file changed
+4
@@ -17,6 +17,10 @@ fs::path GetWalletDir()
|
||||
}
|
||||
} else {
|
||||
path = GetDataDir();
|
||||
// If a wallets directory exists, use that, otherwise default to GetDataDir
|
||||
if (fs::is_directory(path / "wallets")) {
|
||||
path /= "wallets";
|
||||
}
|
||||
}
|
||||
|
||||
return path;
|
||||
|
||||
Reference in new issue
Block a user