Skip to content

Commit

Permalink
Sort FX Presets in SubPaths
Browse files Browse the repository at this point in the history
This resolves an incorrect display order in AirWindows preset
menu.

Closes surge-synthesizer#5549
  • Loading branch information
baconpaul committed Dec 4, 2021
1 parent ccf5d84 commit e4310ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/FxPresetAndClipboardManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ void FxUserPreset::doPresetRescan(SurgeStorage *storage, bool forceRescan)
return a.isFactory;
}

if (a.subPath != b.subPath)
{
return a.subPath < b.subPath;
}

return _stricmp(a.name.c_str(), b.name.c_str()) < 0;
}
else
Expand Down

0 comments on commit e4310ce

Please sign in to comment.