From 0139a56aa517182813084cf3efc07a72c29a80ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Musab=20K=C4=B1l=C4=B1=C3=A7?= Date: Sat, 4 Sep 2021 01:55:52 +0300 Subject: [PATCH] Piano: Format slider values when initially set --- Userland/Applications/Piano/ProcessorParameterSlider.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/Piano/ProcessorParameterSlider.cpp b/Userland/Applications/Piano/ProcessorParameterSlider.cpp index fd449ccfb8..fd7b20e67a 100644 --- a/Userland/Applications/Piano/ProcessorParameterSlider.cpp +++ b/Userland/Applications/Piano/ProcessorParameterSlider.cpp @@ -15,6 +15,7 @@ ProcessorParameterSlider::ProcessorParameterSlider(Orientation orientation, LibD set_value(m_parameter.value().raw()); set_step((m_parameter.min_value() - m_parameter.max_value()).raw() / 128); set_tooltip(m_parameter.name()); + m_value_label->set_text(String::formatted("{:.2f}", static_cast(m_parameter))); on_change = [this](auto value) { LibDSP::ParameterFixedPoint real_value;