Skip to content

Commit dc5911d

Browse files
author
Stephan Dilly
committed
dont send noop GitNotification into app
1 parent 1afa91b commit dc5911d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,13 @@ fn main() -> Result<()> {
136136
app.event(ev)?
137137
}
138138
QueueEvent::Tick => app.update()?,
139-
QueueEvent::GitEvent(ev) => app.update_git(ev)?,
139+
QueueEvent::GitEvent(ev)
140+
if ev != AsyncNotification::FinishUnchanged =>
141+
{
142+
app.update_git(ev)?
143+
}
140144
QueueEvent::SpinnerUpdate => unreachable!(),
145+
_ => (),
141146
}
142147

143148
draw(&mut terminal, &app)?;

0 commit comments

Comments
 (0)