forked from Green-Sky/tomato
improve menus
This commit is contained in:
@ -26,14 +26,14 @@ void ToxUIUtils::render(void) {
|
||||
if (ImGui::BeginMenu("Tox")) {
|
||||
ImGui::SeparatorText("Friends/Groups");
|
||||
|
||||
if (ImGui::MenuItem("add Friend by ID")) {
|
||||
_show_add_friend_window = true;
|
||||
if (ImGui::MenuItem("add Friend by ID", nullptr, _show_add_friend_window)) {
|
||||
_show_add_friend_window = !_show_add_friend_window;
|
||||
}
|
||||
if (ImGui::MenuItem("copy own ToxID")) {
|
||||
ImGui::SetClipboardText(_tc.toxSelfGetAddressStr().c_str());
|
||||
}
|
||||
if (ImGui::MenuItem("join Group by ID (ngc)")) {
|
||||
_show_add_group_window = true;
|
||||
if (ImGui::MenuItem("join Group by ID (ngc)", nullptr, _show_add_group_window)) {
|
||||
_show_add_group_window = !_show_add_group_window;
|
||||
}
|
||||
|
||||
ImGui::SeparatorText("DHT");
|
||||
|
Reference in New Issue
Block a user