mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 15:54:17 +02:00
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);
|
FolderInfo directoryStructure(rootLabel, nullptr);
|
||||||
getDirectoryStructure(rootFolderPath.c_str(), patterns2Match, directoryStructure, true, false);
|
getDirectoryStructure(rootFolderPath.c_str(), patterns2Match, directoryStructure, true, false);
|
||||||
HTREEITEM hRootItem = createFolderItemsFromDirStruct(nullptr, directoryStructure);
|
HTREEITEM hRootItem = createFolderItemsFromDirStruct(nullptr, directoryStructure);
|
||||||
|
_treeView.customSorting(hRootItem, categorySortFunc, 0, true); // needed here for possible *nix like storages (Samba, WebDAV, WSL, ...)
|
||||||
_treeView.expand(hRootItem);
|
_treeView.expand(hRootItem);
|
||||||
_folderUpdaters.push_back(new FolderUpdater(directoryStructure, this));
|
_folderUpdaters.push_back(new FolderUpdater(directoryStructure, this));
|
||||||
_folderUpdaters[_folderUpdaters.size() - 1]->startWatcher();
|
_folderUpdaters[_folderUpdaters.size() - 1]->startWatcher();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user