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;
}
// Context menu when clicking on the background.
if (ImGui.BeginPopupContextWindow())
{
ShowCurrentFolderContextMenu();
ImGui.EndPopup();
}
ImGui.Columns(2);
ImGui.BeginChild("Sidebar");
@@ -64,10 +57,17 @@ namespace GlitchyEditor.EditWindows
ImGui.EndChild();
ImGui.NextColumn();
ImGui.BeginChild("Files");
DrawCurrentDirectory();
// Context menu when clicking on the background.
if (ImGui.BeginPopupContextWindow())
{
ShowCurrentFolderContextMenu();
ImGui.EndPopup();
}
ImGui.EndChild();