[vlc-commits] [Git][videolan/vlc][master] macosx: Clean up showAudioLibrary

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Nov 14 07:03:58 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2d6015a2 by Claudio Cambra at 2022-11-14T06:07:30+00:00
macosx: Clean up showAudioLibrary

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/library/VLCLibraryWindow.m


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryWindow.m
=====================================
@@ -640,29 +640,25 @@ static void addShadow(NSImageView *__unsafe_unretained imageView)
         
         _emptyLibraryView.translatesAutoresizingMaskIntoConstraints = NO;
         [_libraryTargetView addSubview:_emptyLibraryView];
-        
         NSDictionary *dict = NSDictionaryOfVariableBindings(_emptyLibraryView);
         [_libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[_emptyLibraryView(>=572.)]|" options:0 metrics:0 views:dict]];
         [_libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[_emptyLibraryView(>=444.)]|" options:0 metrics:0 views:dict]];
-    }
-    else {
+    } else {
         _audioLibraryView.translatesAutoresizingMaskIntoConstraints = NO;
         [_libraryTargetView addSubview:_audioLibraryView];
         NSDictionary *dict = NSDictionaryOfVariableBindings(_audioLibraryView);
         [_libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[_audioLibraryView(>=572.)]|" options:0 metrics:0 views:dict]];
         [_libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[_audioLibraryView(>=444.)]|" options:0 metrics:0 views:dict]];
         
-        
-         if (self.gridVsListSegmentedControl.selectedSegment == VLCGridViewModeSegment) {
+        if (self.gridVsListSegmentedControl.selectedSegment == VLCGridViewModeSegment) {
             _audioLibrarySplitView.hidden = YES;
             _audioCollectionViewScrollView.hidden = NO;
-            [_libraryAudioDataSource reloadAppearance];
         } else {
             _audioLibrarySplitView.hidden = NO;
             _audioCollectionViewScrollView.hidden = YES;
-            [_libraryAudioDataSource reloadAppearance];
-            [_audioCollectionSelectionTableView reloadData];
         }
+        
+        [_libraryAudioDataSource reloadAppearance];
     }
     
     _librarySortButton.hidden = NO;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2d6015a2d221f97c0a82eca08e2261a1b07f6f00

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2d6015a2d221f97c0a82eca08e2261a1b07f6f00
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