mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
UI message parser
move message parser threads to UI set functions
This commit is contained in:
@@ -27,7 +27,7 @@ void UI_checkbox::toggle_selected(size_t selected)
|
||||
m_selected[selected] = !m_selected[selected];
|
||||
if (m_on_change != nullptr)
|
||||
{
|
||||
m_on_change(m_id, selected_text());
|
||||
std::thread([this] { m_on_change(m_id, selected_text()); }).detach();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user