convert selected

move from string to index to reduce data size
This commit is contained in:
2026-02-14 14:32:03 +01:00
parent 99d537ac29
commit 7c91a64d71
8 changed files with 54 additions and 52 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ void Simulators::event_handler(json event)
}
case Event::selected: {
SPDLOG_DEBUG("Event {}: {} {}", type, (size_t)event.at("id"), std::string(event.at("selected")));
invoke_active_simulator()->get_UI_item(event.at("id"))->set_selected(std::string(event.at("selected")));
invoke_active_simulator()->get_UI_item(event.at("id"))->set_selected(event.at("selected"));
break;
}
case Event::can_send: {