Commit 029607c3 authored by David Fuhrmann's avatar David Fuhrmann

macosx: playlist: update sidebar badge after playlist changed

parent 9c5b13a2
...@@ -1294,6 +1294,9 @@ static bool f_appExit = false; ...@@ -1294,6 +1294,9 @@ static bool f_appExit = false;
[[[self playlist] model] addItem:i_item withParentNode:i_node]; [[[self playlist] model] addItem:i_item withParentNode:i_node];
// update badge in sidebar
[o_mainwindow updateWindow];
[[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged" [[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged"
object: nil object: nil
userInfo: nil]; userInfo: nil];
...@@ -1306,12 +1309,14 @@ static bool f_appExit = false; ...@@ -1306,12 +1309,14 @@ static bool f_appExit = false;
[[[self playlist] model] removeItem:i_item]; [[[self playlist] model] removeItem:i_item];
[[self playlist] deletionCompleted]; [[self playlist] deletionCompleted];
// update badge in sidebar
[o_mainwindow updateWindow];
[[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged" [[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged"
object: nil object: nil
userInfo: nil]; userInfo: nil];
} }
// This must be called on main thread // This must be called on main thread
- (void)PlaylistItemChanged - (void)PlaylistItemChanged
{ {
......
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