From 17fb72f826c1640e45e033aa0aaddd49f28ac9da Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 23 Aug 2017 17:08:41 +0100 Subject: [PATCH] Tweak to the updating of the popup display value in Slider --- modules/juce_gui_basics/widgets/juce_Slider.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_gui_basics/widgets/juce_Slider.cpp b/modules/juce_gui_basics/widgets/juce_Slider.cpp index 2fa8a560ce..5981b4a0b1 100644 --- a/modules/juce_gui_basics/widgets/juce_Slider.cpp +++ b/modules/juce_gui_basics/widgets/juce_Slider.cpp @@ -958,8 +958,6 @@ public: if (popupDisplay == nullptr) showPopupDisplay(); - updatePopupDisplay (getValue()); - if (popupDisplay != nullptr) popupDisplay->startTimer (2000); } @@ -977,6 +975,8 @@ public: { popupDisplay = new PopupDisplayComponent (owner); + updatePopupDisplay (getValue()); + if (parentForPopupDisplay != nullptr) parentForPopupDisplay->addChildComponent (popupDisplay); else