[vlc-commits] macosx: Update sidebar on playlist table changes
Marvin Scholz
git at videolan.org
Sat Aug 18 14:53:08 CEST 2018
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Aug 18 14:32:27 2018 +0200| [d8e1c0ccd5e30d988f5d089553285c48aa57de47] | committer: Marvin Scholz
macosx: Update sidebar on playlist table changes
This is necessary to update the counter badges properly.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d8e1c0ccd5e30d988f5d089553285c48aa57de47
---
modules/gui/macosx/VLCPlaylist.m | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/gui/macosx/VLCPlaylist.m b/modules/gui/macosx/VLCPlaylist.m
index f0ce42beb5..e28872c1e7 100644
--- a/modules/gui/macosx/VLCPlaylist.m
+++ b/modules/gui/macosx/VLCPlaylist.m
@@ -48,6 +48,8 @@
#import "VLCResumeDialogController.h"
#import "VLCOpenWindowController.h"
+#import "PXSourceList/PXSourceList.h"
+
#include <vlc_actions.h>
#import <vlc_interface.h>
#include <vlc_url.h>
@@ -363,6 +365,7 @@
- (IBAction)deleteItem:(id)sender
{
[_model deleteSelectedItem];
+ [[[[VLCMain sharedInstance] mainWindow] sidebarView] performSelector:@selector(reloadData) withObject:nil afterDelay:0.15];
}
// Actions for playlist column selections
@@ -645,6 +648,7 @@
input_item_Release(p_input);
}
PL_UNLOCK;
+ [[[[VLCMain sharedInstance] mainWindow] sidebarView] performSelector:@selector(reloadData) withObject:nil afterDelay:0.15];
}
- (IBAction)recursiveExpandOrCollapseNode:(id)sender
More information about the vlc-commits
mailing list