Commit ad09e6fb authored by David Fuhrmann's avatar David Fuhrmann

macosx: device open: set new media folder as current item when it is added

parent f8d14c62
...@@ -941,6 +941,10 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -941,6 +941,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
else else
[o_disc_selector_pop setHidden: NO]; [o_disc_selector_pop setHidden: NO];
// select newly added media folder
if (o_notification && [[o_notification name] isEqualToString:@"VLCNewMediaFolderNotification"])
[o_disc_selector_pop selectItemAtIndex: [[o_disc_selector_pop itemArray] count] - 1];
[self showSelectedOpticalDisc]; [self showSelectedOpticalDisc];
} }
else else
...@@ -973,7 +977,7 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -973,7 +977,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
if ([o_path length] > 0 ) if ([o_path length] > 0 )
{ {
[o_specialMediaFolders addObject: o_path]; [o_specialMediaFolders addObject: o_path];
[self scanOpticalMedia: nil]; [self scanOpticalMedia: [NSNotification notificationWithName:@"VLCNewMediaFolderNotification" object:nil]];
} }
} }
} }
......
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