diff options
| author | saturneric <[email protected]> | 2026-09-13 17:49:16 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-09-13 17:49:16 +0200 |
| commit | 4e2323ea0f1549cb66eb77aa2491d7ddf0e9c004 (patch) | |
| tree | 29edaab323bae92de36bc2697c1e073db6174c5a /src | |
| parent | feat(email): unify verification result reporting (diff) | |
| download | modules-4e2323ea0f1549cb66eb77aa2491d7ddf0e9c004.tar.gz modules-4e2323ea0f1549cb66eb77aa2491d7ddf0e9c004.zip | |
fix(email): offer signature verification before retries
- Show verification actions whenever message regions are available
- Label the initial action "Verify Signatures" instead of "Verify Again"
- Avoid implying verification already occurred when it has not
Diffstat (limited to 'src')
| -rw-r--r-- | src/m_email/EMailSecurityView.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/m_email/EMailSecurityView.cpp b/src/m_email/EMailSecurityView.cpp index 4e1a508..6506d7b 100644 --- a/src/m_email/EMailSecurityView.cpp +++ b/src/m_email/EMailSecurityView.cpp @@ -282,13 +282,20 @@ void EMailSecurityView::show_row_menu(const QPoint& pos) { } } - // Only once something has already tried. Before that the tab runs a - // verification on its own when it is opened, and offering to repeat work - // that has not happened yet would be a control that means nothing. + // Offered whenever there is something to check. Opening this tab no longer + // verifies the message behind the user's back -- looking at a message is + // not asking for a crypto operation -- so this is where the asking happens, + // and a tab that says nothing has verified it yet has to offer the way to. + // + // The wording follows the state: "again" is a promise that work was already + // done, and on a message nothing has checked it would be a lie. QAction* verify_again = nullptr; - if (has_regions_ && verify_state_ != EMailVerifyState::kNOT_ATTEMPTED) { + if (has_regions_) { menu.addSeparator(); - verify_again = menu.addAction(tr("Verify Again")); + verify_again = + menu.addAction(verify_state_ == EMailVerifyState::kNOT_ATTEMPTED + ? tr("Verify Signatures") + : tr("Verify Again")); } auto* chosen = menu.exec(tree_->viewport()->mapToGlobal(pos)); |
