Skip to content

Commit

Permalink
Devtools: Close Button ( X ) (#2187)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSvoboda authored Jan 19, 2025
1 parent a7d4523 commit c8bbecd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/devtools/layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ void L::DrawMenuBar() {
}
ImGui::EndMenu();
}

SameLine(ImGui::GetWindowWidth() - 30.0f);
if (Button("X", ImVec2(25, 25))) {
DebugState.IsShowingDebugMenuBar() = false;
}

EndMainMenuBar();
}

Expand Down

0 comments on commit c8bbecd

Please sign in to comment.