diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/AbstractSlider.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractSlider.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractSlider.cpp b/Userland/Libraries/LibGUI/AbstractSlider.cpp index ccb0613c1b..c6109ad6cf 100644 --- a/Userland/Libraries/LibGUI/AbstractSlider.cpp +++ b/Userland/Libraries/LibGUI/AbstractSlider.cpp @@ -53,7 +53,7 @@ void AbstractSlider::set_range(int min, int max) update(); } -void AbstractSlider::set_value(int value) +void AbstractSlider::set_value(int value, CallOnChange call_on_change) { value = clamp(value, m_min, m_max); if (m_value == value) @@ -61,7 +61,7 @@ void AbstractSlider::set_value(int value) m_value = value; update(); - if (on_change) + if (on_change && call_on_change == CallOnChange::Yes) on_change(m_value); } |