Browse Source

Skip existing files

recurring
Aditya Kulkarni 6 years ago
parent
commit
a2f6768f6c
  1. 5
      src/connection.cpp

5
src/connection.cpp

@ -139,6 +139,11 @@ void ConnectionLoader::doNextDownload(std::function<void(void)> cb) {
QString paramsDir = zcashParamsDir();
currentOutput = new QFile(QDir(paramsDir).filePath(filename));
if (currentOutput->exists()) {
qDebug() << filename << " already exists, skipping ";
doNextDownload(cb);
}
if (!currentOutput->open(QIODevice::WriteOnly)) {
this->showError("Couldn't download params. Please check the help site for more info.");
}

Loading…
Cancel
Save