From fa077e4fc74250880aa472c13a8f8f0b2ade7d63 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sun, 15 Mar 2026 17:44:51 +0100 Subject: [PATCH] fixed: race condition during unfolding animation --- AppKit/CPOutlineView.j | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AppKit/CPOutlineView.j b/AppKit/CPOutlineView.j index 9d23b6836..1d7409497 100644 --- a/AppKit/CPOutlineView.j +++ b/AppKit/CPOutlineView.j @@ -1132,6 +1132,11 @@ var CPOutlineViewCoalesceSelectionNotificationStateOff = 0, */ - (void)reloadItem:(id)anItem reloadChildren:(BOOL)shouldReloadChildren { + if (_rowsAnimation && [_rowsAnimation isAnimating]) + { + [_rowsAnimation stopAnimation]; + [self animationDidEnd:_rowsAnimation]; + } _pendingItemToClean = []; _itemAddedDuringLastLoading = [];