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:
@@ -19,10 +19,10 @@ void UI_slider::set_value(double value)
|
||||
if (value == m_value)
|
||||
return;
|
||||
|
||||
this->m_value = value;
|
||||
if (m_on_change != nullptr)
|
||||
{
|
||||
this->m_value = value;
|
||||
m_on_change(m_id, value);
|
||||
std::thread([this] { m_on_change(m_id, m_value); }).detach();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user