mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-27 17:02:55 -04:00
fix some config options not saving on change, move check obtained checking to tool func, tracker cleanup
This commit is contained in:
@@ -196,6 +196,7 @@ NumberButton* rando_add_optional_setting(std::string optionValue, std::string op
|
||||
.getValue = [curSetting] { return curSetting->GetCurrentOptionAsNumber(); },
|
||||
.setValue = [curSetting](int value) {
|
||||
curSetting->SetCurrentOption(std::to_string(value));
|
||||
SaveConfig();
|
||||
},
|
||||
.min = std::stoi(options.front()),
|
||||
.max = std::stoi(options.back()),
|
||||
|
||||
Reference in New Issue
Block a user