From 9cf274362e20b784e403bf36660b5d5e7c5a3d62 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Tue, 12 Sep 2023 20:28:54 +0200 Subject: [PATCH] small folder optimation --- client/lobby/SelectionTab.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/lobby/SelectionTab.cpp b/client/lobby/SelectionTab.cpp index e22c936d3..34375db26 100644 --- a/client/lobby/SelectionTab.cpp +++ b/client/lobby/SelectionTab.cpp @@ -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(text, ResourcePath(curItems[py]->fileURI), tabType); } + else + CRClickPopup::createAndPush(curItems[py]->folderName); } auto SelectionTab::checkSubfolder(std::string path)