From ea4adf1039609ea5193e7fae9930cc11e7aa84d6 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sun, 15 Mar 2026 17:08:21 +0100 Subject: [PATCH] fixed: racecondition in row expansion animation --- AppKit/CPOutlineView.j | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AppKit/CPOutlineView.j b/AppKit/CPOutlineView.j index 8b00173d3..25d28913f 100644 --- a/AppKit/CPOutlineView.j +++ b/AppKit/CPOutlineView.j @@ -786,6 +786,13 @@ var CPOutlineViewCoalesceSelectionNotificationStateOff = 0, */ - (void)reloadItem:(id)anItem reloadChildren:(BOOL)shouldReloadChildren { + + if (_rowsAnimation && [_rowsAnimation isAnimating]) + { + [_rowsAnimation stopAnimation]; + [self animationDidEnd:_rowsAnimation]; + } + _pendingItemToClean = []; _itemAddedDuringLastLoading = [];