From 1f0b5e867cc66d11369e062653bebfc269e06a80 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 4 Sep 2024 06:35:41 +0100 Subject: [PATCH] fix(tui): alerts are cleared on next repo update Closes kemitix/git-next#151 --- crates/cli/src/tui/actor/handlers/server_update.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/cli/src/tui/actor/handlers/server_update.rs b/crates/cli/src/tui/actor/handlers/server_update.rs index bdfe3070..ebaee6d5 100644 --- a/crates/cli/src/tui/actor/handlers/server_update.rs +++ b/crates/cli/src/tui/actor/handlers/server_update.rs @@ -34,6 +34,7 @@ impl Handler 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);