mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
config:: reaction called on edit for list settings
This commit is contained in:
parent
5a67e7c040
commit
961b09033f
@ -2881,7 +2881,7 @@ void list_setting::show_edit_option(char key) {
|
||||
int q = isize(options);
|
||||
for(int i=0; i<q; i++) {
|
||||
dialog::addBoolItem(XLAT(options[i].first), get_value() == i, 'a'+i);
|
||||
dialog::add_action([this, i] { set_value(i); popScreen(); });
|
||||
dialog::add_action([this, i] { set_value(i); if(reaction) reaction(); popScreen(); });
|
||||
dialog::addBreak(100);
|
||||
if(options[i].second != "") {
|
||||
dialog::addHelp(XLAT(options[i].second));
|
||||
|
Loading…
Reference in New Issue
Block a user