Fix check bugs for UI_combobox and UI_slider

This commit is contained in:
2024-08-19 01:35:32 +02:00
parent 2ae7845e7c
commit a6c0f1c406
2 changed files with 10 additions and 6 deletions
+5
View File
@@ -14,6 +14,11 @@ UI_slider::UI_slider(const json& j)
void UI_slider::set_value(double value)
{
if (value < p_min || value > p_max)
return;
if (value == p_value)
return;
if (p_on_change != nullptr)
{
this->p_value = value;