Commit fc81b3cf authored by David Fuhrmann's avatar David Fuhrmann

macosx: refresh bookmarks list when input item changes (close #11160)

(cherry picked from commit b52bb8378ffc6953a7f870071756910851c2d852)
Signed-off-by: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent 440d5cff
...@@ -64,5 +64,6 @@ ...@@ -64,5 +64,6 @@
- (IBAction)edit_ok:(id)sender; - (IBAction)edit_ok:(id)sender;
- (void)showBookmarks; - (void)showBookmarks;
- (void)refresh;
- (id)dataTable; - (id)dataTable;
@end @end
...@@ -121,6 +121,11 @@ static VLCBookmarks *_o_sharedInstance = nil; ...@@ -121,6 +121,11 @@ static VLCBookmarks *_o_sharedInstance = nil;
[o_bookmarks_window makeKeyAndOrderFront:nil]; [o_bookmarks_window makeKeyAndOrderFront:nil];
} }
- (void)refresh
{
[o_tbl_dataTable reloadData];
}
- (IBAction)add:(id)sender - (IBAction)add:(id)sender
{ {
/* add item to list */ /* add item to list */
......
...@@ -1297,6 +1297,7 @@ static bool f_appExit = false; ...@@ -1297,6 +1297,7 @@ static bool f_appExit = false;
[o_mainwindow updateWindow]; [o_mainwindow updateWindow];
[self updateDelays]; [self updateDelays];
[self updateMainMenu]; [self updateMainMenu];
[[self bookmarks] refresh];
/* /*
* Due to constraints within NSAttributedString's main loop runtime handling * Due to constraints within NSAttributedString's main loop runtime handling
......
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