Can now open .map in trenchbroom automatically

This commit is contained in:
Antoine Pilote
2023-09-15 17:53:07 -04:00
parent a5cf290f4c
commit 61776b4fb8
11 changed files with 26 additions and 10 deletions

View File

@@ -213,6 +213,10 @@ namespace Nuake
{
Editor->Selection = EditorSelection(file);
}
if (ImGui::IsItemHovered() && ImGui::IsMouseDoubleClicked(0))
{
OS::OpenTrenchbroomMap(file->GetAbsolutePath());
}
}
ImGui::PopStyleVar();
if (ImGui::BeginDragDropSource())