Fix Folder as Workspace for network storage sorting problem

Now Notepad++ ensures that the Folder as Workspace treeview sorting will be ok even for the *nix (Samba, WebDAV, WSL..) storage used.

Fix #10557, fix #15397, close #15457
This commit is contained in:
xomx 2024-07-18 20:00:09 +02:00 committed by Don Ho
parent 955b042fcb
commit f05f4105de
1 changed files with 1 additions and 0 deletions

View File

@ -1009,6 +1009,7 @@ void FileBrowser::addRootFolder(wstring rootFolderPath)
FolderInfo directoryStructure(rootLabel, nullptr);
getDirectoryStructure(rootFolderPath.c_str(), patterns2Match, directoryStructure, true, false);
HTREEITEM hRootItem = createFolderItemsFromDirStruct(nullptr, directoryStructure);
_treeView.customSorting(hRootItem, categorySortFunc, 0, true); // needed here for possible *nix like storages (Samba, WebDAV, WSL, ...)
_treeView.expand(hRootItem);
_folderUpdaters.push_back(new FolderUpdater(directoryStructure, this));
_folderUpdaters[_folderUpdaters.size() - 1]->startWatcher();