Fixed current directories context menu not opening

i.e. when right clicking the background of the current directory
This commit is contained in:
Simon Lübeß
2023-06-25 03:20:35 +02:00
parent 9e1f648aa0
commit 46693666aa
@@ -48,13 +48,6 @@ namespace GlitchyEditor.EditWindows
return; return;
} }
// Context menu when clicking on the background.
if (ImGui.BeginPopupContextWindow())
{
ShowCurrentFolderContextMenu();
ImGui.EndPopup();
}
ImGui.Columns(2); ImGui.Columns(2);
ImGui.BeginChild("Sidebar"); ImGui.BeginChild("Sidebar");
@@ -69,6 +62,13 @@ namespace GlitchyEditor.EditWindows
DrawCurrentDirectory(); DrawCurrentDirectory();
// Context menu when clicking on the background.
if (ImGui.BeginPopupContextWindow())
{
ShowCurrentFolderContextMenu();
ImGui.EndPopup();
}
ImGui.EndChild(); ImGui.EndChild();
ImGui.Columns(1); ImGui.Columns(1);