Skip to content

Commit

Permalink
- fix release trigger script crashing when editing the table
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Hart committed Sep 22, 2024
1 parent 3a60657 commit b489f7a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hi_scripting/scripting/api/ScriptComponentWrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,11 @@ void ScriptCreatedComponentWrapper::showValuePopup()

parentTile->addAndMakeVisible(currentPopup = new ValuePopup(*this));

currentPopup->setFont(dynamic_cast<const Processor*>(parentTile->getScriptProcessor())->getMainController()->getFontFromString("Default", 14.0f));



if(auto sp = dynamic_cast<const Processor*>(parentTile->getScriptProcessor()))
{
currentPopup->setFont(sp->getMainController()->getFontFromString("Default", 14.0f));
}

currentPopup->setAlwaysOnTop(true);

updatePopupPosition();
Expand Down

0 comments on commit b489f7a

Please sign in to comment.