Skip to content

Commit

Permalink
fix: [vault] There is a vertical line on the widget.
Browse files Browse the repository at this point in the history
The line is delate later, so add the QTimer::singleShot to wait is delate.

Log: fix issue
Bug: https://pms.uniontech.com/bug-view-249139.html
  • Loading branch information
GongHeng2017 authored and deepin-bot[bot] committed Jul 11, 2024
1 parent 83fb0ac commit 16d607a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ void VaultRemoveByNoneWidget::slotCheckAuthorizationFinished(PolkitQt1::Authorit
return;
}

emit jumpPage(RemoveWidgetType::kRemoveProgressWidget);
QTimer::singleShot(0, this, [this](){
emit jumpPage(RemoveWidgetType::kRemoveProgressWidget);
});
}

void VaultRemoveByNoneWidget::initUI()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ void VaultRemoveByPasswordView::slotCheckAuthorizationFinished(PolkitQt1::Author
return;
}

emit signalJump(RemoveWidgetType::kRemoveProgressWidget);
QTimer::singleShot(0, this, [this](){
emit signalJump(RemoveWidgetType::kRemoveProgressWidget);
});
}

bool VaultRemoveByPasswordView::eventFilter(QObject *obj, QEvent *evt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ void VaultRemoveByRecoverykeyView::slotCheckAuthorizationFinished(PolkitQt1::Aut
dialog.exec();
return;
}

emit signalJump(RemoveWidgetType::kRemoveProgressWidget);
QTimer::singleShot(0, this, [this](){
emit signalJump(RemoveWidgetType::kRemoveProgressWidget);
});
}

int VaultRemoveByRecoverykeyView::afterRecoveryKeyChanged(QString &str)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ void VaultRemovePages::showRecoveryKeyWidget()
void VaultRemovePages::showRemoveProgressWidget()
{
clearContents(true);
if (getButtons().size() > 1) {
getButton(0)->setVisible(false);
getButton(1)->setVisible(false);
}
clearButtons();

progressView = new VaultRemoveProgressView(this);
Expand Down

0 comments on commit 16d607a

Please sign in to comment.