Skip to content

Commit

Permalink
Fix load previous/next user preset not working with full expansions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhealey committed Mar 24, 2023
1 parent 5659410 commit 72f4d4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hi_core/hi_core/UserPresetHandler.cpp
Expand Up @@ -642,6 +642,9 @@ void MainController::UserPresetHandler::incPreset(bool next, bool stayInSameDire
auto userDirectory = FrontendHandler::getUserPresetDirectory();
#endif

if (auto e = FullInstrumentExpansion::getCurrentFullExpansion(mc))
userDirectory = e->getSubDirectory(FileHandlerBase::UserPresets);

userDirectory.findChildFiles(allPresets, File::findFiles, true, "*.preset");
PresetBrowser::DataBaseHelpers::cleanFileList(mc, allPresets);
allPresets.sort();
Expand Down

0 comments on commit 72f4d4a

Please sign in to comment.