1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

small folder optimation

This commit is contained in:
Laserlicht 2023-09-12 20:28:54 +02:00 committed by GitHub
parent 7f321b2fcb
commit 9cf274362e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -345,7 +345,10 @@ void SelectionTab::clickDouble(const Point & cursorPosition)
return;
if(itemIndex >= 0 && curItems[itemIndex]->isFolder)
{
select(position);
return;
}
if(getLine() != -1) //double clicked scenarios list
{
@ -370,6 +373,8 @@ void SelectionTab::showPopupWindow(const Point & cursorPosition)
GH.windows().createAndPushWindow<CMapInfoTooltipBox>(text, ResourcePath(curItems[py]->fileURI), tabType);
}
else
CRClickPopup::createAndPush(curItems[py]->folderName);
}
auto SelectionTab::checkSubfolder(std::string path)