From 75bd222fea0d7051b7d5c19fbaf19faa85f0a15b Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Wed, 1 Jan 2025 01:22:21 +0900 Subject: [PATCH] Update context.rs --- crates/egui/src/context.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs index 3ecf42ca46b..62d4c0c1838 100644 --- a/crates/egui/src/context.rs +++ b/crates/egui/src/context.rs @@ -1443,6 +1443,7 @@ impl Context { /// HTTPS or localhost). If this method is used outside of a secure context, it will log an /// error and do nothing. See . pub fn copy_text(&self, text: String) { + self.output_mut(|o| o.copied_text = text.clone()); self.send_cmd(crate::OutputCommand::CopyText(text)); }