From 029607c311c73fbaf52d0f84c62e7ee982524bb4 Mon Sep 17 00:00:00 2001 From: David Fuhrmann Date: Sat, 7 Mar 2015 13:10:37 +0100 Subject: [PATCH] macosx: playlist: update sidebar badge after playlist changed --- 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 57eb845e86..49f32bf64a 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 { -- 2.39.2