]> git.sesse.net Git - vlc/commitdiff
macosx: playlist: update sidebar badge after playlist changed
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 7 Mar 2015 12:10:37 +0000 (13:10 +0100)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 8 Mar 2015 16:28:49 +0000 (17:28 +0100)
modules/gui/macosx/intf.m

index 57eb845e86505db49bd3d9933c73502c04b82398..49f32bf64a766849dc5a037e243f6cb27c75e4f9 100644 (file)
@@ -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
 {