forked from organicmaps/organicmaps
[iOS] Added datasource to available maps when opening from child folder
https://jira.mail.ru/browse/MAPSME-14142
This commit is contained in:
parent
8626406848
commit
9e860c5b02
1 changed files with 3 additions and 0 deletions
|
@ -219,6 +219,9 @@ class DownloadMapsViewController: MWMViewController {
|
|||
|
||||
@objc func onAddMaps() {
|
||||
let vc = storyboard!.instantiateViewController(ofType: DownloadMapsViewController.self)
|
||||
if !dataSource.isRoot {
|
||||
vc.dataSource = AvailableMapsDataSource(dataSource.parentAttributes().countryId)
|
||||
}
|
||||
vc.mode = .available
|
||||
navigationController?.pushViewController(vc, animated: true)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue