Add copy content to clipboard button to error status popup

This commit is contained in:
scawful
2024-01-22 20:33:03 -05:00
parent 98394a6139
commit 6bb82e02a1

View File

@@ -196,6 +196,10 @@ void MasterEditor::DrawStatusPopup() {
if (ImGui::Button("OK", gui::kDefaultModalSize)) {
show_status_ = false;
}
ImGui::SameLine();
if (ImGui::Button(ICON_MD_CONTENT_COPY, ImVec2(50, 0))) {
ImGui::SetClipboardText(prev_status_.ToString().c_str());
}
ImGui::End();
}
}