Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarCharSelection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/frontend/StarCharSelection.cpp')
-rw-r--r--source/frontend/StarCharSelection.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/frontend/StarCharSelection.cpp b/source/frontend/StarCharSelection.cpp
index 6a61dcf..2c00b42 100644
--- a/source/frontend/StarCharSelection.cpp
+++ b/source/frontend/StarCharSelection.cpp
@@ -39,6 +39,10 @@ CharSelectionPane::CharSelectionPane(PlayerStoragePtr playerStorage,
guiReader.registerCallback("clearSearch", [=](Widget*) {
fetchChild<TextBoxWidget>("searchCharacter")->setText("");
});
+ guiReader.registerCallback("toggleDismissCheckbox", [=](Widget* widget) {
+ auto configuration = Root::singleton().configuration();
+ configuration->set("characterSwapDismisses", as<ButtonWidget>(widget)->isChecked());
+ });
guiReader.construct(root.assets()->json("/interface/windowconfig/charselection.config"), this);
}