mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-07 03:19:36 +00:00
Set default wallet dir on Windows
This commit is contained in:
parent
1981c8b4d0
commit
b4a5319958
1 changed files with 3 additions and 2 deletions
|
@ -82,10 +82,11 @@ AppContext::AppContext(QCommandLineParser *cmdargs) {
|
||||||
this->defaultWalletDir = QString("%1/Monero/wallets").arg(this->configRoot);
|
this->defaultWalletDir = QString("%1/Monero/wallets").arg(this->configRoot);
|
||||||
this->defaultWalletDirRoot = QString("%1/Monero").arg(this->configRoot);
|
this->defaultWalletDirRoot = QString("%1/Monero").arg(this->configRoot);
|
||||||
#elif defined(Q_OS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
// @TODO
|
this->defaultWalletDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation) + "/Monero";
|
||||||
|
this->defaultWalletDirRoot = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Create ~/Monero/wallets if it does not exist yet
|
// Create wallet dirs
|
||||||
if (!QDir().mkpath(defaultWalletDir))
|
if (!QDir().mkpath(defaultWalletDir))
|
||||||
qCritical() << "Unable to create dir: " << defaultWalletDir;
|
qCritical() << "Unable to create dir: " << defaultWalletDir;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue