From caa34f1f4616b6c3e7a11295e7b07fe303b183fb Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 8 Sep 2026 11:17:29 +0200 Subject: feat: make Sync follow the account being looked at Item 101. The sync run was already account-aware for pending edits and consulted the account dropdown for nothing, so looking at one account and pressing Sync collected every one of them. pendingSyncChannels() now reads the dropdown as well as m_editedAccounts. The two are a UNION rather than one replacing the other, which is the whole safety property: looking at one account while having edited another is ordinary, and a run that dropped the edited account's channel would strand that write with nothing on screen to say so. All accounts is the empty key and narrows nothing, so a full fetch stays what an unselected window asks for. The existing fallback is untouched: an account whose section names no channel still widens the run rather than being silently skipped. syncStartedText() is the visibility half. A run opened with "Syncing..." whether it covered one account or all of them; it now names what it covers. The exit paths overwrite the label with their own wording immediately, so the parameter is defaulted rather than threaded through them. Four tests. The narrowing one asserts the channel list is EMPTY before the gesture, since empty is what a full fetch looks like and a test starting from a narrowed state could not tell the fix from a window that had never widened. Mutation-checked twice: ignoring the selection fails three of them, and replacing the pending set instead of unioning with it fails the union test alone, which is the version that looks correct and loses a write. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01KphFXTc2QajxXsHWyvGJ4R --- translations/qtmaildir_it_IT.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'translations/qtmaildir_it_IT.ts') diff --git a/translations/qtmaildir_it_IT.ts b/translations/qtmaildir_it_IT.ts index 4daea21..c0e336d 100644 --- a/translations/qtmaildir_it_IT.ts +++ b/translations/qtmaildir_it_IT.ts @@ -738,6 +738,14 @@ Il messaggio È stato inviato. Non inviarlo di nuovo. &Delete thread &Elimina conversazione + + Syncing all accounts... + Sincronizzazione di tutti gli account... + + + Syncing %1... + Sincronizzazione di %1... + Undelete thread Ripristina conversazione @@ -1409,10 +1417,6 @@ Il messaggio È stato inviato. Non inviarlo di nuovo. %1, waiting for the running sync to finish %1, in attesa che termini la sincronizzazione in corso - - Syncing... - Sincronizzazione in corso... - %n unsynced change(s) -- cgit v1.2.3