sort directories before files in the processing profiles menus
Fixes #4295
This commit is contained in:
@@ -49,6 +49,7 @@ bool ProfileStore::init (bool loadAll)
|
|||||||
if ((storeState == STORESTATE_NOTINITIALIZED || storeState == STORESTATE_DIRTY) && loadAll) {
|
if ((storeState == STORESTATE_NOTINITIALIZED || storeState == STORESTATE_DIRTY) && loadAll) {
|
||||||
storeState = STORESTATE_BEINGINITIALIZED;
|
storeState = STORESTATE_BEINGINITIALIZED;
|
||||||
_parseProfiles ();
|
_parseProfiles ();
|
||||||
|
std::stable_partition(entries.begin(), entries.end(), [](const ProfileStoreEntry *e) { return e->type == PSET_FOLDER; });
|
||||||
storeState = STORESTATE_INITIALIZED;
|
storeState = STORESTATE_INITIALIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user