forked from Green-Sky/tomato
improve menus
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user