Browse Source

Projucer: Fixed a bug when highlighting the global JUCE path property component bounds

v6.1.6
ed 4 years ago
parent
commit
6b29a6d8ff
1 changed files with 9 additions and 6 deletions
  1. +9
    -6
      extras/Projucer/Source/Application/Windows/jucer_GlobalPathsWindowComponent.h

+ 9
- 6
extras/Projucer/Source/Application/Windows/jucer_GlobalPathsWindowComponent.h View File

@@ -125,15 +125,18 @@ public:
if (isTimerRunning() || ! isSelectedOSThisOS())
return;
PropertyComponent* jucePathPropertyComponent = nullptr;
const auto findJucePathPropertyComponent = [this]() -> PropertyComponent*
{
for (const auto& prop : propertyGroup.getProperties())
if (prop->getName() == "Path to JUCE")
return prop.get();
for (const auto& prop : propertyGroup.getProperties())
if (prop->getName() == "Path to JUCE")
jucePathPropertyComponent = prop.get();
return nullptr;
};
if (jucePathPropertyComponent != nullptr)
if (auto* propComponent = findJucePathPropertyComponent())
{
boundsToHighlight = getLocalArea (&propertyGroup, jucePathPropertyComponent->getBounds());
boundsToHighlight = getLocalArea (nullptr, propComponent->getScreenBounds());
flashAlpha = 0.0f;
hasFlashed = false;


Loading…
Cancel
Save