[Commits] [SCM] claws branch, master, updated. 4.3.0-60-g6aad4ec5d

paul at claws-mail.org paul at claws-mail.org
Wed Jan 29 10:00:30 UTC 2025


The branch, master has been updated
       via  6aad4ec5dd844f46754d925c660eb09de22b98f7 (commit)
      from  ebf575b43d152033e762e7bb7f26414ebed1cef2 (commit)

Summary of changes:
 src/mainwindow.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


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

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

diff --git a/src/mainwindow.c b/src/mainwindow.c
index 0041b2c6d..7ca301108 100644
--- 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)

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list