MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / startThread

Method startThread

pcsx2-qt/CoverDownloadDialog.cpp:99–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void CoverDownloadDialog::startThread()
100{
101 m_thread = std::make_unique<CoverDownloadThread>(this, m_ui.urls->toPlainText(), !m_ui.useTitleFileNames->isChecked());
102 m_last_refresh_time.Reset();
103 connect(m_thread.get(), &CoverDownloadThread::statusUpdated, this, &CoverDownloadDialog::onDownloadStatus);
104 connect(m_thread.get(), &CoverDownloadThread::progressUpdated, this, &CoverDownloadDialog::onDownloadProgress);
105 connect(m_thread.get(), &CoverDownloadThread::threadFinished, this, &CoverDownloadDialog::onDownloadComplete);
106 m_thread->start();
107 updateEnabled();
108}
109
110void CoverDownloadDialog::cancelThread()
111{

Callers

nothing calls this directly

Calls 3

ResetMethod · 0.45
getMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected