Skip to content

Commit

Permalink
Fix PathParameter updateView()
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Oct 11, 2023
1 parent ee0f991 commit c5367e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Source/Processors/Parameter/ParameterEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ void PathParameterEditor::buttonClicked(Button* button_)
{
File file = chooser.getResult();
param->setNextValue(file.getFullPathName());
button->setTooltip(file.getFullPathName());
updateView();
}
}

Expand All @@ -952,8 +952,12 @@ void PathParameterEditor::updateView()
button->setEnabled(true);

if (param)
{
button->setButtonText(param->getValueAsString());
//button->setButtonText(File(param->getValueAsString()).getFileName());
//Alternatively:
//button->setButtonText(File(param->getValueAsString()).getFileName());
button->setTooltip(param->getValueAsString());
}
}

void PathParameterEditor::resized()
Expand Down

0 comments on commit c5367e9

Please sign in to comment.