improve menus

This commit is contained in:
2024-09-22 12:35:19 +02:00
parent 557a642ad3
commit 86ce199ac8
6 changed files with 25 additions and 20 deletions

View File

@ -109,8 +109,8 @@ void SettingsWindow::render(void) {
if (ImGui::BeginMenuBar()) {
ImGui::Separator();
if (ImGui::BeginMenu("Settings")) {
if (ImGui::MenuItem("settings window")) {
_show_window = true;
if (ImGui::MenuItem("settings window", nullptr, _show_window)) {
_show_window = !_show_window;
}
ImGui::EndMenu();
}