dont send noop GitNotification into app

This commit is contained in:
Stephan Dilly 2020-07-12 13:55:55 +02:00
parent 1afa91b144
commit dc5911de20

View File

@ -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)?;