| 97 | } |
| 98 | |
| 99 | void 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 | |
| 110 | void CoverDownloadDialog::cancelThread() |
| 111 | { |