mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 09:14:58 -06:00
feat: go on cancel folder priority over file in comparison
This commit is contained in:
@@ -488,10 +488,10 @@ int CBrowseDialog::CompareItems(LPARAM lParam1, LPARAM lParam2) const
|
|||||||
const CFileInfo &f1 = _files[(int)lParam1];
|
const CFileInfo &f1 = _files[(int)lParam1];
|
||||||
const CFileInfo &f2 = _files[(int)lParam2];
|
const CFileInfo &f2 = _files[(int)lParam2];
|
||||||
|
|
||||||
const bool isDir1 = f1.IsDir();
|
// const bool isDir1 = f1.IsDir();
|
||||||
const bool isDir2 = f2.IsDir();
|
// const bool isDir2 = f2.IsDir();
|
||||||
if (isDir1 && !isDir2) return -1;
|
// if (isDir1 && !isDir2) return -1;
|
||||||
if (isDir2 && !isDir1) return 1;
|
// if (isDir2 && !isDir1) return 1;
|
||||||
|
|
||||||
int res = 0;
|
int res = 0;
|
||||||
switch (_sortIndex)
|
switch (_sortIndex)
|
||||||
|
|||||||
@@ -191,8 +191,8 @@ int CALLBACK CompareItems(LPARAM lParam1, LPARAM lParam2, LPARAM lpData)
|
|||||||
|
|
||||||
CPanel *panel = (CPanel*)lpData;
|
CPanel *panel = (CPanel*)lpData;
|
||||||
|
|
||||||
const bool isDir1 = panel->IsItem_Folder((unsigned)lParam1);
|
// const bool isDir1 = panel->IsItem_Folder((unsigned)lParam1);
|
||||||
const bool isDir2 = panel->IsItem_Folder((unsigned)lParam2);
|
// const bool isDir2 = panel->IsItem_Folder((unsigned)lParam2);
|
||||||
|
|
||||||
// if (isDir1 && !isDir2) return -1;
|
// if (isDir1 && !isDir2) return -1;
|
||||||
// if (isDir2 && !isDir1) return 1;
|
// if (isDir2 && !isDir1) return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user