fix(tui): alerts are cleared on next repo update

Closes kemitix/git-next#151
This commit is contained in:
Paul Campbell 2024-09-04 06:35:41 +01:00
parent 8ca7aad3c3
commit 1f0b5e867c

View file

@ -34,6 +34,7 @@ impl Handler<ServerUpdate> for Tui {
let Some(repo_state) = forge_state.repos.get_mut(&repo_alias) else {
return;
};
repo_state.clear_alert();
match repo_update {
RepoUpdate::Branches { branches } => {
repo_state.update_branches(branches);