IGFD: finally fix sorting
This commit is contained in:
parent
599244e1bc
commit
2fe315e5d7
3 changed files with 8 additions and 9 deletions
9
extern/igfd/ImGuiFileDialog.cpp
vendored
9
extern/igfd/ImGuiFileDialog.cpp
vendored
|
|
@ -1189,10 +1189,9 @@ namespace IGFD
|
|||
IGFD::FileManager::FileManager()
|
||||
{
|
||||
puFsRoot = std::string(1u, PATH_SEP);
|
||||
puSortingDirection[0]=false;
|
||||
puSortingDirection[1]=false;
|
||||
puSortingDirection[2]=false;
|
||||
puSortingDirection[3]=false;
|
||||
for (int i=0; i<5; i++) {
|
||||
puSortingDirection[i]=true;
|
||||
}
|
||||
}
|
||||
|
||||
void IGFD::FileManager::OpenCurrentPath(const FileDialogInternal& vFileDialogInternal)
|
||||
|
|
@ -1233,7 +1232,7 @@ namespace IGFD
|
|||
logV("IGFD: sorting by name");
|
||||
if (vCanChangeOrder && puSortingField == vSortingField) {
|
||||
//printf("Change the sorting\n");
|
||||
puSortingDirection[0] = true;//!puSortingDirection[0];
|
||||
puSortingDirection[0] = !puSortingDirection[0];
|
||||
}
|
||||
|
||||
if (puSortingDirection[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue