UI message parser

move message parser threads to UI set functions
This commit is contained in:
2024-08-28 19:59:23 +02:00
parent 70b953dc16
commit 8cabf7a6e9
8 changed files with 28 additions and 13 deletions
+2 -2
View File
@@ -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();
}
}