Skip to content

Commit

Permalink
fix: update status is incorrect
Browse files Browse the repository at this point in the history
update status is incorrect

Log: update status is incorrect
pms: BUG-299365
  • Loading branch information
swq authored and deepin-bot[bot] committed Mar 3, 2025
1 parent 4f75505 commit 1739569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugin-update/operation/updatework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void UpdateWork::deleteJob(UpdateJobDBusProxy* dbusJob)
void UpdateWork::onActionBtnClicked()
{
qInfo() << " onActionBtnClicked : " << m_model->getUpdateState();
if (m_model->getUpdateState() == "success") {
if (m_model->distUpgradeState() == UpdateModel::UpdateJobState::job_successd) {
DDBusSender()
.service("com.deepin.dde.shutdownFront")
.interface("com.deepin.dde.shutdownFront")
Expand Down
4 changes: 2 additions & 2 deletions src/plugin-update/qml/UpdateControl.qml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ ColumnLayout {
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
text: dccData.model().actionBtnText
font.pixelSize: 14
implicitWidth: 120
implicitHeight: 30
textColor: DS.Style.highlightedButton.background1

visible: dccData.model().distUpgradeState !== 1 && dccData.model().distUpgradeState !== 0
onClicked: {
dccData.work().onActionBtnClicked();
Expand Down

0 comments on commit 1739569

Please sign in to comment.