[vlc-commits] [Git][videolan/vlc][master] 2 commits: macosx: Use existing convenience method to select navigation sidebar tree node
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sat Jul 12 19:09:37 UTC 2025
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
f5343dd8 by Claudio Cambra at 2025-07-12T18:34:57+00:00
macosx: Use existing convenience method to select navigation sidebar tree node
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
6641add4 by Claudio Cambra at 2025-07-12T18:34:57+00:00
macosx: Fix segment selection on startup being incorrect if last-selected segment was not a root tree node
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/library/VLCLibraryWindowNavigationSidebarViewController.m
Changes:
=====================================
modules/gui/macosx/library/VLCLibraryWindowNavigationSidebarViewController.m
=====================================
@@ -142,12 +142,6 @@ static NSString * const VLCLibrarySegmentCellIdentifier = @"VLCLibrarySegmentCel
options:nil];
[self.outlineView reloadData];
- NSTreeNode * const targetNode = [self nodeForSegmentType:currentSegmentType];
- const NSInteger segmentIndex = [self.outlineView rowForItem:targetNode];
- [self expandParentsOfNode:targetNode];
- [self.outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:segmentIndex]
- byExtendingSelection:NO];
-
self.ignoreSegmentSelectionChanges = NO;
[self updateBookmarkObservation];
@@ -158,6 +152,8 @@ static NSString * const VLCLibrarySegmentCellIdentifier = @"VLCLibrarySegmentCel
[self.outlineView expandItem:node];
}
}
+
+ [self selectSegment:currentSegmentType];
}
- (void)updateBookmarkObservation
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/6dc291953e566483e115375afda97bfa8b17dcd2...6641add41630b91a667128ebf0b814a666739125
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/6dc291953e566483e115375afda97bfa8b17dcd2...6641add41630b91a667128ebf0b814a666739125
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list