Add clipboard copy functionality for warning messages in Log::Render

This commit is contained in:
brunoherbelin
2025-11-09 20:07:42 +01:00
parent 2f7bd3a3d1
commit ec9a4ef88a

View File

@@ -299,6 +299,9 @@ void Log::Render(bool *showWarnings)
ImGui::PushTextWrapPos(ImGui::GetCursorPos().x + width);
for (list<string>::iterator it=warnings.begin(); it != warnings.end(); ++it) {
ImGui::Text("%s \n", (*it).c_str());
ImGui::SameLine(0, IMGUI_SAME_LINE);
if ( ImGuiToolkit::IconButton(ICON_FA_COPY, "Copy to clipboard") )
ImGui::SetClipboardText((*it).c_str());
ImGui::Separator();
}
ImGui::PopTextWrapPos();