bugfix: properly sub to new selected acc after removal of selected

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-07-17 20:31:36 -04:00
parent 0b8a4fdf55
commit d4082eb818
3 changed files with 42 additions and 11 deletions

View File

@@ -94,7 +94,10 @@ impl SwitchingAction {
.router_mut()
.go_back();
}
AccountsAction::Remove(to_remove) => ctx.accounts.remove_account(to_remove),
AccountsAction::Remove(to_remove) => {
ctx.accounts
.remove_account(to_remove, ctx.ndb, ctx.pool, ui_ctx);
}
},
SwitchingAction::Columns(columns_action) => match *columns_action {
ColumnsAction::Remove(index) => {