mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05: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,10 +194,13 @@ 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);
|
||||||
|
if (_repo.toString() == OSLIST_URL)
|
||||||
|
{
|
||||||
DownloadStatsTelemetry *tele = new DownloadStatsTelemetry(urlstr, _parentCategory.toLatin1(), _osName.toLatin1(), this);
|
DownloadStatsTelemetry *tele = new DownloadStatsTelemetry(urlstr, _parentCategory.toLatin1(), _osName.toLatin1(), this);
|
||||||
connect(tele, SIGNAL(finished()), tele, SLOT(deleteLater()));
|
connect(tele, SIGNAL(finished()), tele, SLOT(deleteLater()));
|
||||||
tele->start();
|
tele->start();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_thread = new DownloadThread(urlstr, _dst.toLatin1(), _expectedHash, this);
|
_thread = new DownloadThread(urlstr, _dst.toLatin1(), _expectedHash, this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue