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:
parent
7f321b2fcb
commit
9cf274362e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user