Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/dcc-update-plugin/operation/updatemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ void UpdateModel::updateCheckUpdateUi()
setCheckBtnText(tr("Check Again"));
break;
case Updated:
case UpdatesAvailable:
qCDebug(logDccUpdatePlugin) << "Setting UI for Updated status";
setCheckBtnText(tr("Check Again"));
setCheckUpdateErrTips(tr("Your system is up to date"));
Expand Down
3 changes: 0 additions & 3 deletions src/dcc-update-plugin/operation/updatework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1561,14 +1561,11 @@ void UpdateWorker::onCheckUpdateStatusChanged(const QString& value)
watcher->deleteLater();
// 日志处理完了再显示更新内容界面
});
m_model->setLastStatus(CheckingSucceed, __LINE__);
m_model->setCheckUpdateStatus(CheckingSucceed);
setUpdateInfo();
m_model->setShowCheckUpdate(!m_model->isUpdatable());
} else if (value == "end") {
refreshLastTimeAndCheckCircle();
m_model->setCheckUpdateStatus(UpdatesStatus(m_model->lastStatus()));
m_model->updateCheckUpdateUi();
deleteJob(m_checkUpdateJob);
m_doCheckUpdates = false;
}
Expand Down