mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
convert selected
move from string to index to reduce data size
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user