diff --git a/src/connection.cpp b/src/connection.cpp index 8731d56..f692ca2 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -139,6 +139,11 @@ void ConnectionLoader::doNextDownload(std::function 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."); }