MCPcopy Create free account
hub / github.com/MultiMC/Launcher / updateChanList

Method updateChanList

launcher/updater/UpdateChecker.cpp:183–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void 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
201void UpdateChecker::chanListDownloadFinished(bool notifyNoUpdate)
202{

Callers 3

tst_UpdateCheckingMethod · 0.80
LauncherPageMethod · 0.80

Calls 4

QUrlClass · 0.85
addNetActionMethod · 0.80
getMethod · 0.45
startMethod · 0.45

Tested by 2

tst_UpdateCheckingMethod · 0.64