[vlc-commits] macosx: playlist: update sidebar badge after playlist changed

David Fuhrmann git at videolan.org
Sun Mar 8 17:49:19 CET 2015


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Mar  7 13:10:37 2015 +0100| [029607c311c73fbaf52d0f84c62e7ee982524bb4] | committer: David Fuhrmann

macosx: playlist: update sidebar badge after playlist changed

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=029607c311c73fbaf52d0f84c62e7ee982524bb4
---

 modules/gui/macosx/intf.m |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 57eb845..49f32bf 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1294,6 +1294,9 @@ static bool f_appExit = false;
 
     [[[self playlist] model] addItem:i_item withParentNode:i_node];
 
+    // update badge in sidebar
+    [o_mainwindow updateWindow];
+
     [[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged"
                                                         object: nil
                                                       userInfo: nil];
@@ -1306,12 +1309,14 @@ static bool f_appExit = false;
     [[[self playlist] model] removeItem:i_item];
     [[self playlist] deletionCompleted];
 
+    // update badge in sidebar
+    [o_mainwindow updateWindow];
+
     [[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged"
                                                         object: nil
                                                       userInfo: nil];
 }
 
-
 // This must be called on main thread
 - (void)PlaylistItemChanged
 {



More information about the vlc-commits mailing list