From b48d7e3cfd6ea978cacc75e5f2e80c6511fd384d Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 6 Aug 2024 12:47:47 +0200 Subject: [PATCH] better context --- src/chat_gui4.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat_gui4.cpp b/src/chat_gui4.cpp index 1e888978..9ae85ac6 100644 --- a/src/chat_gui4.cpp +++ b/src/chat_gui4.cpp @@ -1206,6 +1206,9 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) { std::cout << "opening file '" << url << "'\n"; SDL_OpenURL(url.c_str()); } + + ImGui::Separator(); + if (ImGui::MenuItem("copy file")) { const std::string url {file_path_to_file_url(local_info.file_path)}; //ImGui::SetClipboardText(url.c_str());