mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-28 22:03:30 +03:00
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:
parent
c968a1049c
commit
acf902c2e6
@ -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)?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user