better context

This commit is contained in:
Green Sky 2024-08-06 12:47:47 +02:00
parent c7ba6d19ad
commit b48d7e3cfd
No known key found for this signature in database

View File

@ -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());