From 46693666aa224d8bbe538037cb16cde4aa5f8c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Sun, 25 Jun 2023 03:20:35 +0200 Subject: [PATCH] Fixed current directories context menu not opening i.e. when right clicking the background of the current directory --- .../src/EditWindows/ContentBrowserWindow.bf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/GlitchyEditor/src/EditWindows/ContentBrowserWindow.bf b/GlitchyEditor/src/EditWindows/ContentBrowserWindow.bf index c98ae4f..c44cc39 100644 --- a/GlitchyEditor/src/EditWindows/ContentBrowserWindow.bf +++ b/GlitchyEditor/src/EditWindows/ContentBrowserWindow.bf @@ -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();