From 1b980eaa9d4cbc050b6b81525e4b6b72ae853be5 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 26 May 2026 15:49:07 +0300 Subject: feat: show clipboard copy feedback --- src/app/runtime.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/app/runtime.rs') diff --git a/src/app/runtime.rs b/src/app/runtime.rs index bbef7444..2e1f4d81 100644 --- a/src/app/runtime.rs +++ b/src/app/runtime.rs @@ -162,6 +162,15 @@ impl App { changed = true; } + if self + .copy_feedback_deadline + .is_some_and(|deadline| now >= deadline) + { + self.copy_feedback_deadline = None; + self.state.copy_feedback = None; + changed = true; + } + if self .next_animation_tick .is_some_and(|deadline| now >= deadline) @@ -431,6 +440,7 @@ impl App { include_resize_poll.then_some(self.next_resize_poll), self.config_diagnostic_deadline, self.toast_deadline, + self.copy_feedback_deadline, self.next_animation_tick, self.git_refresh_deadline(), self.next_auto_update_check, -- cgit v1.2.3