talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 6aad4ec5dd844f46754d925c660eb09de22b98f7
parent ebf575b43d152033e762e7bb7f26414ebed1cef2
Author: Paul <paul@claws-mail.org>
Date:   Wed, 29 Jan 2025 10:00:25 +0000

stop needlessly checking which folders want sycnhronising every time we select a msg in an MH mailbox

Diffstat:
Msrc/mainwindow.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/mainwindow.c b/src/mainwindow.c @@ -3007,7 +3007,10 @@ SensitiveCondMask main_window_get_current_state(MainWindow *mainwin) if (cur_account && cur_account->protocol != A_NONE) UPDATE_STATE(M_HAVE_RETRIEVABLE_ACCOUNT); - if (any_folder_want_synchronise()) + if (mainwin->summaryview->folder_item && + (mainwin->summaryview->folder_item->folder->klass->type == F_IMAP || + mainwin->summaryview->folder_item->folder->klass->type == F_NEWS) && + any_folder_want_synchronise()) UPDATE_STATE(M_WANT_SYNC); if (item && item->prefs->processing && selection != SUMMARY_NONE)