Fix applied -> in_workspace performance issue

- loop was taking > 1s for me
- my 8 branches (2 in workspace) were constantly being saved
This commit is contained in:
Mattias Granlund 2024-08-21 15:27:24 +01:00
parent c968a1049c
commit acf902c2e6

View File

@ -245,7 +245,7 @@ fn resolve_old_applied_state(
for mut branch in branches {
if branch.is_old_unapplied() {
branch_manager.convert_to_real_branch(branch.id, perm)?;
} else {
} else if branch.applied != branch.in_workspace {
branch.applied = branch.in_workspace;
vb_state.set_branch(branch)?;
}