summaryrefslogtreecommitdiff
path: root/src/app/runtime.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-26 15:49:07 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-26 15:50:06 +0300
commit1b980eaa9d4cbc050b6b81525e4b6b72ae853be5 (patch)
tree48afc3595519c9e229e22528ecc229a66f9bd874 /src/app/runtime.rs
parent57c880f0ebaa5011abc90f4e2fd4f84fc072ce35 (diff)
feat: show clipboard copy feedback
Diffstat (limited to 'src/app/runtime.rs')
-rw-r--r--src/app/runtime.rs10
1 files changed, 10 insertions, 0 deletions
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
@@ -163,6 +163,15 @@ impl App {
}
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,