Commit ae4325e9 authored by Marvin Scholz's avatar Marvin Scholz Committed by David Fuhrmann

macosx: Replace method of auto-expanding all items in the Source List

This replaces the iteration over all items and expanding them with a
single call to the expand method, passing nil for the item, which
causes all items to expand.
This works since OS X 10.5.
Signed-off-by: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent 6f54a759
...@@ -211,10 +211,7 @@ static const float f_min_window_height = 307.; ...@@ -211,10 +211,7 @@ static const float f_min_window_height = 307.;
if (![defaults objectForKey:@"VLCFirstRun"]) { if (![defaults objectForKey:@"VLCFirstRun"]) {
[defaults setObject:[NSDate date] forKey:@"VLCFirstRun"]; [defaults setObject:[NSDate date] forKey:@"VLCFirstRun"];
NSUInteger i_sidebaritem_count = [o_sidebaritems count]; [o_sidebar_view expandItem:nil expandChildren:YES];
for (NSUInteger x = 0; x < i_sidebaritem_count; x++)
[o_sidebar_view expandItem: [o_sidebaritems objectAtIndex:x] expandChildren: YES];
[_fspanel center]; [_fspanel center];
NSAlert *albumArtAlert = [NSAlert alertWithMessageText:_NS("Check for album art and metadata?") defaultButton:_NS("Enable Metadata Retrieval") alternateButton:_NS("No, Thanks") otherButton:nil informativeTextWithFormat:@"%@",_NS("VLC can check online for album art and metadata to enrich your playback experience, e.g. by providing track information when playing Audio CDs. To provide this functionality, VLC will send information about your contents to trusted services in an anonymized form.")]; NSAlert *albumArtAlert = [NSAlert alertWithMessageText:_NS("Check for album art and metadata?") defaultButton:_NS("Enable Metadata Retrieval") alternateButton:_NS("No, Thanks") otherButton:nil informativeTextWithFormat:@"%@",_NS("VLC can check online for album art and metadata to enrich your playback experience, e.g. by providing track information when playing Audio CDs. To provide this functionality, VLC will send information about your contents to trusted services in an anonymized form.")];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment