[Commits] [SCM] claws branch, master, updated. 4.3.1-99-g70eff51d7

wwp at claws-mail.org wwp at claws-mail.org
Thu Apr 10 16:31:05 UTC 2025


The branch, master has been updated
       via  70eff51d7ec8f0fe5d3237c16a51b63968eb977e (commit)
      from  10760345fb3bea0a26d10e96379ff29a2dac4a66 (commit)

Summary of changes:
 src/toolbar.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 70eff51d7ec8f0fe5d3237c16a51b63968eb977e
Author: wwp <subscript at free.fr>
Date:   Thu Apr 10 18:30:39 2025 +0200

    Implement RFE 4827: conditioned to a new hidden option 'mainwin_toolbar_always_enable_actions', activate toolbar items bound to user actions (in the main window) whether some messages are selected or not. Keep former behaviour by default.

diff --git a/src/toolbar.c b/src/toolbar.c
index 3bee74942..01a005b5c 100644
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -2861,8 +2861,11 @@ do { \
 
 	for (cur = toolbar->action_list; cur != NULL;  cur = cur->next) {
 		ToolbarClawsActions *act = (ToolbarClawsActions*)cur->data;
-		
-		SET_WIDGET_COND(act->widget, M_UNLOCKED);
+
+		if (prefs_common.mainwin_toolbar_always_enable_actions)
+			SET_WIDGET_COND(act->widget, M_UNLOCKED);
+		else
+			SET_WIDGET_COND(act->widget, M_TARGET_EXIST, M_UNLOCKED);
 	}
 
 	state = main_window_get_current_state(mainwin);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list