From 904dd92b9877c11473de7e5752259d9ada0842ea Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 5 Aug 2026 13:44:10 +0200 Subject: [PATCH] pre-reactions now work in list parameters --- config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.cpp b/config.cpp index a66f1ac1..a7158d33 100644 --- a/config.cpp +++ b/config.cpp @@ -4473,7 +4473,7 @@ void list_parameter::show_edit_option(key_type key) { if(need_list >= 2) dialog::start_list(1500, 1500, 'a'); for(int i=0; i= 2 ? dialog::list_fake_key++ : 'a' + i); - auto action = [this, i, need_list] { set_value(i); if(need_list == 0) popScreen(); if(manual_reaction) manual_reaction(); if(reaction) reaction(); }; + auto action = [this, i, need_list] { if(pre_reaction) pre_reaction(); set_value(i); if(need_list == 0) popScreen(); if(manual_reaction) manual_reaction(); if(reaction) reaction(); }; if(needs_confirm) dialog::add_action_confirmed(action); else