Commit 478d3fcd authored by David Fuhrmann's avatar David Fuhrmann

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

(cherry picked from commit ad09e6fbfb12153fd79cc5256b33407fec3309b8)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent 31f4c4db
...@@ -871,6 +871,10 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -871,6 +871,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
...@@ -903,7 +907,7 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -903,7 +907,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