mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
Add clipboard copy functionality for warning messages in Log::Render
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user