Skip to content

Commit

Permalink
Check isBearRelease flag rather than assume from path
Browse files Browse the repository at this point in the history
  • Loading branch information
firthm01 committed Feb 29, 2024
1 parent 2fd6517 commit c1c0f3d
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,13 @@ void setFromMetadata(DataFileManager::DataFile& dataFile) {
}

void updateFile(juce::File const& file, DataFileManager::FileMap& file_map,
bool released) {
auto [it, success] = file_map.insert(
{file, DataFileManager::DataFile{.filename = file.getFileName(),
.fullPath = file,
.label = "",
.description = "",
.isBearRelease = released}});
setFromMetadata(it->second);
bool mustBeRelease) {
DataFileManager::DataFile df{.filename = file.getFileName(),
.fullPath = file};
setFromMetadata(df);
if (!mustBeRelease || df.isBearRelease) {
file_map.insert({file, std::move(df)});
}
}
} // namespace

Expand Down

0 comments on commit c1c0f3d

Please sign in to comment.