mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Disable telemetry if user specified custom repository with --repo
This commit is contained in:
parent
cb0a3dd954
commit
43c1e05795
1 changed files with 6 additions and 3 deletions
|
@ -194,9 +194,12 @@ void ImageWriter::startWrite()
|
|||
else if (compressed)
|
||||
{
|
||||
_thread = new DownloadExtractThread(urlstr, _dst.toLatin1(), _expectedHash, this);
|
||||
DownloadStatsTelemetry *tele = new DownloadStatsTelemetry(urlstr, _parentCategory.toLatin1(), _osName.toLatin1(), this);
|
||||
connect(tele, SIGNAL(finished()), tele, SLOT(deleteLater()));
|
||||
tele->start();
|
||||
if (_repo.toString() == OSLIST_URL)
|
||||
{
|
||||
DownloadStatsTelemetry *tele = new DownloadStatsTelemetry(urlstr, _parentCategory.toLatin1(), _osName.toLatin1(), this);
|
||||
connect(tele, SIGNAL(finished()), tele, SLOT(deleteLater()));
|
||||
tele->start();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue