Skip to content
Snippets Groups Projects
Commit 38b05b5f authored by Claudio Cambra's avatar Claudio Cambra Committed by Jean-Baptiste Kempf
Browse files

macosx: Prevent unnecessary reloadData calls in VLCLibraryAudioDataSource

parent f9057380
No related branches found
No related tags found
1 merge request!2249macosx: Prevent unnecessary reloadData calls in VLCLibraryAudioDataSource
Pipeline #244671 passed with stages
in 37 minutes and 8 seconds
......@@ -115,7 +115,8 @@
- (IBAction)segmentedControlAction:(id)sender
{
[_collectionViewFlowLayout resetLayout];
enum vlc_ml_parent_type oldParentType = _currentParentType;
_currentSelectedSegment = _segmentedControl.selectedSegment;
switch (_currentSelectedSegment) {
case 0:
......@@ -144,9 +145,14 @@
[self reloadEmptyViewAppearance];
return;
}
if(oldParentType == _currentParentType) {
return;
}
[_collectionViewFlowLayout resetLayout];
[self.collectionView reloadData];
[self.collectionSelectionTableView reloadData];
[self.groupSelectionTableView reloadData];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment