Skip to content

Commit

Permalink
Nav: Removed unnecessary test following 49ca1c2 (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Aug 21, 2016
1 parent 49ca1c2 commit c6c7371
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6c7371

Please sign in to comment.