mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
ux: Open files in existing ImHex instance if passed in as command line argument on windows
Closes #389
This commit is contained in:
5
external/ImGui/source/imgui.cpp
vendored
5
external/ImGui/source/imgui.cpp
vendored
@@ -7292,7 +7292,10 @@ void ImGui::FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWind
|
||||
{
|
||||
// We may later decide to test for different NoXXXInputs based on the active navigation input (mouse vs nav) but that may feel more confusing to the user.
|
||||
ImGuiWindow* window = g.WindowsFocusOrder[i];
|
||||
IM_ASSERT(window == window->RootWindow);
|
||||
//IM_ASSERT(window == window->RootWindow);
|
||||
if (window != window->RootWindow)
|
||||
return;
|
||||
|
||||
if (window != ignore_window && window->WasActive)
|
||||
if ((window->Flags & (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) != (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user