| @@ -125,15 +125,18 @@ public: | |||||
| if (isTimerRunning() || ! isSelectedOSThisOS()) | if (isTimerRunning() || ! isSelectedOSThisOS()) | ||||
| return; | 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; | flashAlpha = 0.0f; | ||||
| hasFlashed = false; | hasFlashed = false; | ||||