| 181 | } |
| 182 | |
| 183 | void UpdateChecker::updateChanList(bool notifyNoUpdate) |
| 184 | { |
| 185 | qDebug() << "Loading the channel list."; |
| 186 | |
| 187 | if (m_chanListLoading) |
| 188 | { |
| 189 | qDebug() << "Ignoring channel list update request. Already grabbing channel list."; |
| 190 | return; |
| 191 | } |
| 192 | |
| 193 | m_chanListLoading = true; |
| 194 | chanListJob = new NetJob("Update System Channel List", m_network); |
| 195 | chanListJob->addNetAction(Net::Download::makeByteArray(QUrl(m_channelUrl), &chanlistData)); |
| 196 | connect(chanListJob.get(), &NetJob::succeeded, [this, notifyNoUpdate]() { chanListDownloadFinished(notifyNoUpdate); }); |
| 197 | connect(chanListJob.get(), &NetJob::failed, this, &UpdateChecker::chanListDownloadFailed); |
| 198 | chanListJob->start(); |
| 199 | } |
| 200 | |
| 201 | void UpdateChecker::chanListDownloadFinished(bool notifyNoUpdate) |
| 202 | { |