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

@@ -38,8 +38,8 @@ void ToxDHTCapHisto::render(void) {
ImGui::Checkbox("enabled", &_enabled);
if (ImGui::MenuItem("show DHT announce capability histogram")) {
_show_window = true;
if (ImGui::MenuItem("announce capability histogram", nullptr, _show_window)) {
_show_window = !_show_window;
}
ImGui::EndMenu();