fix(tui): alerts are cleared on next repo update
All checks were successful
Rust / build (push) Successful in 8m54s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 1m21s

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 { let Some(repo_state) = forge_state.repos.get_mut(&repo_alias) else {
return; return;
}; };
repo_state.clear_alert();
match repo_update { match repo_update {
RepoUpdate::Branches { branches } => { RepoUpdate::Branches { branches } => {
repo_state.update_branches(branches); repo_state.update_branches(branches);