From 0a631deb49906e1daaba317dc42eb45874f6249e Mon Sep 17 00:00:00 2001 From: jrm <39135270+CastelJeremy@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:07:55 +0200 Subject: [PATCH] update clear message input on success --- src/widgets/window.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/window.rs b/src/widgets/window.rs index c233608..4196305 100644 --- a/src/widgets/window.rs +++ b/src/widgets/window.rs @@ -221,8 +221,10 @@ impl NotifyWindow { ..models::Message::default() }); + let e = entry.clone(); entry.error_boundary().spawn(async move { p.await?; + e.set_text(""); Ok(()) }); };