Disable telemetry if user specified custom repository with --repo

This commit is contained in:
Floris Bos 2020-12-07 13:50:53 +01:00
parent cb0a3dd954
commit 43c1e05795

View file

@ -194,9 +194,12 @@ void ImageWriter::startWrite()
else if (compressed) else if (compressed)
{ {
_thread = new DownloadExtractThread(urlstr, _dst.toLatin1(), _expectedHash, this); _thread = new DownloadExtractThread(urlstr, _dst.toLatin1(), _expectedHash, this);
DownloadStatsTelemetry *tele = new DownloadStatsTelemetry(urlstr, _parentCategory.toLatin1(), _osName.toLatin1(), this); if (_repo.toString() == OSLIST_URL)
connect(tele, SIGNAL(finished()), tele, SLOT(deleteLater())); {
tele->start(); DownloadStatsTelemetry *tele = new DownloadStatsTelemetry(urlstr, _parentCategory.toLatin1(), _osName.toLatin1(), this);
connect(tele, SIGNAL(finished()), tele, SLOT(deleteLater()));
tele->start();
}
} }
else else
{ {