Skip to content

Commit

Permalink
Label first in data file list and mark custom ones
Browse files Browse the repository at this point in the history
  • Loading branch information
firthm01 committed Jan 19, 2024
1 parent 1a6382b commit 0462a56
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,16 @@ void BinauralMonitoringJuceFrontendConnector::setDataFileComboBox(
return a->filename.compareIgnoreCase(b->filename) < 0;
});
for (const auto& df : dfs) {
juce::String txt(df->filename);
if (df->label.isNotEmpty()) {
txt += " (" + df->label + ")";
juce::String txt;
if (!df->isBearRelease) {
txt = "[CUSTOM] ";
}
if (df->isBearRelease) {
txt += " [RELEASED]";
if (df->label.isEmpty()) {
// use filename - will be an unusual case in future
txt += df->filename;
} else {
txt += df->label;
txt += " (" + df->filename + ")";
}
auto entry = comboBox->addTextEntry(txt, df->filename);
entry->setLightFont(!df->isBearRelease);
Expand Down

0 comments on commit 0462a56

Please sign in to comment.