mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-24 00:26:36 +00:00
Nav: Removed unnecessary test following 49ca1c2b88
(#323)
This commit is contained in:
parent
49ca1c2b88
commit
c6c7371a4c
@ -5089,8 +5089,7 @@ bool ImGui::Begin(const char* name, bool* p_open, const ImVec2& size_on_first_us
|
||||
{
|
||||
// Close & collapse button are on layer 1 (same as menus) and don't default focus
|
||||
const ImGuiItemFlags backup_item_options = window->DC.ItemFlags;
|
||||
if (window->Flags & ImGuiWindowFlags_MenuBar)
|
||||
window->DC.ItemFlags &= ~ImGuiItemFlags_AllowNavDefaultFocus;
|
||||
window->DC.ItemFlags &= ~ImGuiItemFlags_AllowNavDefaultFocus;
|
||||
window->DC.NavLayerCurrent++;
|
||||
|
||||
// Collapse button
|
||||
|
Loading…
Reference in New Issue
Block a user