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:
parent
955b042fcb
commit
f05f4105de
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue