mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Fixed current directories context menu not opening
i.e. when right clicking the background of the current directory
This commit is contained in:
@@ -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");
|
||||||
@@ -64,10 +57,17 @@ namespace GlitchyEditor.EditWindows
|
|||||||
ImGui.EndChild();
|
ImGui.EndChild();
|
||||||
|
|
||||||
ImGui.NextColumn();
|
ImGui.NextColumn();
|
||||||
|
|
||||||
ImGui.BeginChild("Files");
|
ImGui.BeginChild("Files");
|
||||||
|
|
||||||
DrawCurrentDirectory();
|
DrawCurrentDirectory();
|
||||||
|
|
||||||
|
// Context menu when clicking on the background.
|
||||||
|
if (ImGui.BeginPopupContextWindow())
|
||||||
|
{
|
||||||
|
ShowCurrentFolderContextMenu();
|
||||||
|
ImGui.EndPopup();
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.EndChild();
|
ImGui.EndChild();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user