diff options
Diffstat (limited to 'Userland/Applications/PixelPaint/BucketTool.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/BucketTool.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/BucketTool.cpp b/Userland/Applications/PixelPaint/BucketTool.cpp index 412b6041b2..6a0e35c691 100644 --- a/Userland/Applications/PixelPaint/BucketTool.cpp +++ b/Userland/Applications/PixelPaint/BucketTool.cpp @@ -102,8 +102,11 @@ GUI::Widget* BucketTool::get_properties_widget() threshold_slider.set_fixed_height(20); threshold_slider.set_range(0, 100); threshold_slider.set_value(m_threshold); - threshold_slider.on_change = [this](int value) { + threshold_slider.set_tooltip(String::formatted("{}%", m_threshold)); + + threshold_slider.on_change = [&](int value) { m_threshold = value; + threshold_slider.set_tooltip(String::formatted("{}%", value)); }; } |