修复在第一次下载进度报告前取消下载导致崩溃的问题

This commit is contained in:
RigoLigoRLC
2022-02-21 18:01:26 +08:00
parent b0a2d64b71
commit 904cc3cb1c
4 changed files with 27 additions and 11 deletions

View File

@@ -81,10 +81,16 @@ void SpkDownloadEntry::SetStatus(DownloadEntryStatus status, QString msg)
mBtnDelete->setText(tr("Cancel"));
break;
case Starting:
mMessage->setText(tr("Starting download"));
mBtnDelete->setVisible(false);
break;
case Downloading:
mMessage->setText(tr(""));
mProgress->setVisible(true);
mBtnActions->setVisible(false);
mBtnDelete->setVisible(true);
break;
case DownloadFailed: