From 6d3ef742b5d7fd876908b6eede73653bb3a98a44 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Mon, 17 Jun 2024 15:19:55 +0200 Subject: [PATCH] finally add copy own id --- src/tox_ui_utils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tox_ui_utils.cpp b/src/tox_ui_utils.cpp index 1151521d..06445aa6 100644 --- a/src/tox_ui_utils.cpp +++ b/src/tox_ui_utils.cpp @@ -29,6 +29,9 @@ void ToxUIUtils::render(void) { if (ImGui::MenuItem("add Friend by ID")) { _show_add_friend_window = true; } + 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; }