Tweaks to windows installer

This commit is contained in:
adityapk00
2018-11-19 19:16:40 -08:00
parent 87303fbed2
commit c4ed8ed40d
6 changed files with 22 additions and 14 deletions

View File

@@ -641,6 +641,10 @@ void MainWindow::importPrivKey() {
}
}
/**
* Backup the wallet.dat file. This is kind of a hack, since it has to read from the filesystem rather than an RPC call
* This might fail for various reasons - Remote zcashd, non-standard locations, custom params passed to zcashd, many others
*/
void MainWindow::backupWalletDat() {
QDir zcashdir(rpc->getConnection()->config->zcashDir);
QString backupDefaultName = "zcash-wallet-backup-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".dat";