mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Disable main menu items for views that aren't selected right now
This commit is contained in:
@@ -728,6 +728,7 @@ namespace hex {
|
||||
|
||||
// Detect if the window is focused
|
||||
const bool focused = ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_NoPopupHierarchy);
|
||||
view->setFocused(focused);
|
||||
|
||||
// Dock the window if it's not already docked
|
||||
if (view->didWindowJustOpen() && !ImGui::IsWindowDocked()) {
|
||||
|
||||
Reference in New Issue
Block a user