Commit 72f3e860 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: always expand all sidebar nodes on launch (fixes #5811) and make sure...

macosx: always expand all sidebar nodes on launch (fixes #5811) and make sure that the sidebar isn't editable by the user
parent af6ffdaa
...@@ -21,16 +21,16 @@ ...@@ -21,16 +21,16 @@
</object> </object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<integer value="2770"/> <integer value="283"/>
<integer value="1617"/>
<integer value="29"/> <integer value="29"/>
<integer value="21"/>
<integer value="4722"/>
<integer value="915"/>
<integer value="4596"/> <integer value="4596"/>
<integer value="283"/> <integer value="1617"/>
<integer value="4895"/> <integer value="4895"/>
<integer value="4722"/>
<integer value="2770"/>
<integer value="2730"/> <integer value="2730"/>
<integer value="4717"/>
<integer value="915"/>
</object> </object>
<object class="NSArray" key="IBDocument.PluginDependencies"> <object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
</object> </object>
</object> </object>
<object class="NSTextFieldCell" key="NSDataCell" id="1022116109"> <object class="NSTextFieldCell" key="NSDataCell" id="1022116109">
<int key="NSCellFlags">337772096</int> <int key="NSCellFlags">67239488</int>
<int key="NSCellFlags2">2048</int> <int key="NSCellFlags2">2048</int>
<string key="NSContents">Text Cell</string> <string key="NSContents">Text Cell</string>
<object class="NSFont" key="NSSupport"> <object class="NSFont" key="NSSupport">
......
...@@ -391,6 +391,9 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -391,6 +391,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
[o_sidebar_view reloadData]; [o_sidebar_view reloadData];
[o_sidebar_view selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:YES]; [o_sidebar_view selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:YES];
NSUInteger i_sidebaritem_count = [o_sidebaritems count];
for (NSUInteger x = 0; x < i_sidebaritem_count; x++)
[o_sidebar_view expandItem: [o_sidebaritems objectAtIndex: x] expandChildren: YES];
if( b_dark_interface ) if( b_dark_interface )
{ {
...@@ -1893,10 +1896,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1893,10 +1896,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
/* taken under BSD-new from the PXSourceList sample project, adapted for VLC */ /* taken under BSD-new from the PXSourceList sample project, adapted for VLC */
- (BOOL)sourceList:(PXSourceList*)aSourceList isGroupAlwaysExpanded:(id)group - (BOOL)sourceList:(PXSourceList*)aSourceList isGroupAlwaysExpanded:(id)group
{ {
if([[group identifier] isEqualToString:@"library"]) return NO;
return YES;
return NO;
} }
- (void)sourceListSelectionDidChange:(NSNotification *)notification - (void)sourceListSelectionDidChange:(NSNotification *)notification
......
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