From dc5911de205769694d9f39d2f6bfafa505e46ff9 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Sun, 12 Jul 2020 13:55:55 +0200 Subject: [PATCH] dont send noop GitNotification into app --- src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 60ed171d..1c453b08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -136,8 +136,13 @@ fn main() -> Result<()> { app.event(ev)? } QueueEvent::Tick => app.update()?, - QueueEvent::GitEvent(ev) => app.update_git(ev)?, + QueueEvent::GitEvent(ev) + if ev != AsyncNotification::FinishUnchanged => + { + app.update_git(ev)? + } QueueEvent::SpinnerUpdate => unreachable!(), + _ => (), } draw(&mut terminal, &app)?;