Browse Source

Default walletdir is wallets/ if it exists

0.16
MeshCollider 7 years ago
parent
commit
9587a9c12b
  1. 4
      src/wallet/walletutil.cpp

4
src/wallet/walletutil.cpp

@ -17,6 +17,10 @@ fs::path GetWalletDir() @@ -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;

Loading…
Cancel
Save