From 92d7eafcc34b684dfc6ccf573e502206bed1cbd3 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 10 Jul 2024 00:01:58 +0200 Subject: [PATCH] for list_parameters, manul reaction, and pop/react switch --- config.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.cpp b/config.cpp index 0716150f..847bb7fa 100644 --- a/config.cpp +++ b/config.cpp @@ -133,6 +133,7 @@ EX void show_edit_option_enum(char* value, const string& name, const vector > options; @@ -3938,7 +3939,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(reaction) reaction(); if(need_list == 0) popScreen(); }; + auto action = [this, i, need_list] { 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