Browse Source

Tweak to the updating of the popup display value in Slider

tags/2021-05-28
jules 7 years ago
parent
commit
17fb72f826
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_gui_basics/widgets/juce_Slider.cpp

+ 2
- 2
modules/juce_gui_basics/widgets/juce_Slider.cpp View File

@@ -958,8 +958,6 @@ public:
if (popupDisplay == nullptr) if (popupDisplay == nullptr)
showPopupDisplay(); showPopupDisplay();
updatePopupDisplay (getValue());
if (popupDisplay != nullptr) if (popupDisplay != nullptr)
popupDisplay->startTimer (2000); popupDisplay->startTimer (2000);
} }
@@ -977,6 +975,8 @@ public:
{ {
popupDisplay = new PopupDisplayComponent (owner); popupDisplay = new PopupDisplayComponent (owner);
updatePopupDisplay (getValue());
if (parentForPopupDisplay != nullptr) if (parentForPopupDisplay != nullptr)
parentForPopupDisplay->addChildComponent (popupDisplay); parentForPopupDisplay->addChildComponent (popupDisplay);
else else


Loading…
Cancel
Save