talons

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

commit 082a75f3cddc224249420f6d38d331e8843e5902
parent 6aad4ec5dd844f46754d925c660eb09de22b98f7
Author: Paul <paul@claws-mail.org>
Date:   Wed, 29 Jan 2025 11:59:23 +0000

remove M_WANT_SYNC, it has way too much overhead just for menu item sensitivity

Diffstat:
Msrc/mainwindow.c | 7-------
Msrc/mainwindow.h | 1-
2 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/mainwindow.c b/src/mainwindow.c @@ -3007,12 +3007,6 @@ SensitiveCondMask main_window_get_current_state(MainWindow *mainwin) if (cur_account && cur_account->protocol != A_NONE) UPDATE_STATE(M_HAVE_RETRIEVABLE_ACCOUNT); - 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) UPDATE_STATE(M_HAVE_PROCESSING); @@ -3131,7 +3125,6 @@ void main_window_set_menu_sensitive(MainWindow *mainwin) SET_SENSITIVE("Menu/File/SaveAs", M_TARGET_EXIST); SET_SENSITIVE("Menu/File/SavePartAs", M_SINGLE_TARGET_EXIST); SET_SENSITIVE("Menu/File/Print", M_TARGET_EXIST); - SET_SENSITIVE("Menu/File/SynchroniseFolders", M_WANT_SYNC); SET_SENSITIVE("Menu/File/Exit", M_UNLOCKED); SET_SENSITIVE("Menu/Edit/SelectThread", M_TARGET_EXIST, M_SUMMARY_ISLIST); diff --git a/src/mainwindow.h b/src/mainwindow.h @@ -55,7 +55,6 @@ typedef enum M_CAN_LEARN_SPAM, M_ACTIONS_EXIST, M_HAVE_QUEUED_MAILS, - M_WANT_SYNC, M_TAGS_EXIST, M_HAVE_PROCESSING, M_SUMMARY_ISLIST,