return nil;
}
+- (BOOL)isPlaylistCollapsed
+{
+ return ![o_btn_playlist state];
+}
+
- (id)getInfo
{
if( o_info )
b_buffering = YES;
}
- /* update our info-panel to reflect the new item */
- [[[VLCMain sharedInstance] getInfo]
- updatePanelWithItem:
- playlist_CurrentPlayingItem( p_playlist )->p_input];
+ /* update our info-panel to reflect the new item, if we don't show
+ * the playlist or the selection is empty */
+ if( [self isPlaylistCollapsed] == YES )
+ [[self getInfo] updatePanelWithItem: playlist_CurrentPlayingItem( p_playlist )->p_input];
/* seekable streams */
b_seekable = var_GetBool( p_input, "can-seek" );
- (void)updateTogglePlaylistState
{
if( [o_window contentRectForFrameRect:[o_window frame]].size.height <= 169. )
- {
[o_btn_playlist setState: NO];
- }
else
- {
[o_btn_playlist setState: YES];
- }
+
+ [[self getPlaylist] outlineViewSelectionDidChange: NULL];
}
- (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)proposedFrameSize
}
[o_mi_revealInFinder setEnabled: NO];
[o_mm_mi_revealInFinder setEnabled: NO];
+
+ if( [[VLCMain sharedInstance] isPlaylistCollapsed] == NO )
+ {
+ /* update our info-panel to reflect the new item, if we aren't collapsed */
+ [[[VLCMain sharedInstance] getInfo] updatePanelWithItem:p_item->p_input];
+ }
}
}