commit 70eff51d7ec8f0fe5d3237c16a51b63968eb977e
parent 10760345fb3bea0a26d10e96379ff29a2dac4a66
Author: wwp <subscript@free.fr>
Date: Thu, 10 Apr 2025 18:30:39 +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.
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git 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);