Commit f763868a authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: update metadata in info panel if metadata changes

(cherry picked from commit 75fe831c3acc3c1066bacf30e846bb5e438fee31)
parent 0f9d3494
...@@ -1336,6 +1336,9 @@ static bool f_appExit = false; ...@@ -1336,6 +1336,9 @@ static bool f_appExit = false;
- (void)plItemUpdated - (void)plItemUpdated
{ {
[o_mainwindow updateName]; [o_mainwindow updateName];
if (o_info != NULL)
[o_info updateMetadata];
} }
- (void)updateMainMenu - (void)updateMainMenu
......
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
- (void)initMediaPanelStats; - (void)initMediaPanelStats;
- (void)updatePanelWithItem:(input_item_t *)_p_item; - (void)updatePanelWithItem:(input_item_t *)_p_item;
- (void)setMeta: (char *)meta forLabel: (id)theItem; - (void)setMeta: (char *)meta forLabel: (id)theItem;
- (void)updateMetadata;
- (void)updateStatistics; - (void)updateStatistics;
+ (VLCInfo *)sharedInstance; + (VLCInfo *)sharedInstance;
......
...@@ -179,6 +179,14 @@ static VLCInfo *_o_sharedInstance = nil; ...@@ -179,6 +179,14 @@ static VLCInfo *_o_sharedInstance = nil;
} }
- (void)updateMetadata
{
if (!p_item)
return;
[self updatePanelWithItem:p_item];
}
- (void)updatePanelWithItem:(input_item_t *)_p_item; - (void)updatePanelWithItem:(input_item_t *)_p_item;
{ {
NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init];
......
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