Fixed context menu on files in file system, added back double click to load project in welcome window

This commit is contained in:
Antoine Pilote
2023-09-27 22:43:28 -04:00
parent 51fc92f523
commit 1d5e3a9640
3 changed files with 30 additions and 54 deletions

View File

@@ -207,12 +207,19 @@ namespace Nuake
draw_list->ChannelsSetCurrent(1);
//ImGui::PushStyleColor(ImGuiCol_Header, ImVec4(0, 0, 0, 0));
bool result = ImGui::Selectable(selectableName.c_str(), SelectedProject == itemIndex, ImGuiSelectableFlags_AllowOverlap, ImVec2(ImGui::GetContentRegionAvail().x, itemHeight));
bool result = ImGui::Selectable(selectableName.c_str(), SelectedProject == itemIndex, ImGuiSelectableFlags_AllowOverlap | ImGuiSelectableFlags_AllowDoubleClick, ImVec2(ImGui::GetContentRegionAvail().x, itemHeight));
if (result)
{
SelectedProject = itemIndex;
}
if (result && ImGui::IsMouseDoubleClicked(0))
{
SaveRecentFile();
queuedProjectPath = _Projects[SelectedProject].Path;;
}
//ImGui::PopStyleColor();
draw_list->ChannelsMerge();