From 6bb82e02a1174fa3359e0f7e39e3cb9fd37eea52 Mon Sep 17 00:00:00 2001 From: scawful Date: Mon, 22 Jan 2024 20:33:03 -0500 Subject: [PATCH] Add copy content to clipboard button to error status popup --- src/app/editor/master_editor.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/editor/master_editor.cc b/src/app/editor/master_editor.cc index 965b5088..fbc3a708 100644 --- a/src/app/editor/master_editor.cc +++ b/src/app/editor/master_editor.cc @@ -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(); } }