forked from organicmaps/organicmaps
[ios] Fixed download from map.
Added ability to download from map in case when routing is built but not yet started.
This commit is contained in:
parent
0ecdb3f90b
commit
a7c3a9804b
1 changed files with 4 additions and 3 deletions
|
@ -94,13 +94,14 @@ using namespace storage;
|
|||
|
||||
- (void)configDialog
|
||||
{
|
||||
auto & s = GetFramework().Storage();
|
||||
auto & p = GetFramework().DownloadingPolicy();
|
||||
auto & f = GetFramework();
|
||||
auto const & s = f.Storage();
|
||||
auto const & p = f.DownloadingPolicy();
|
||||
|
||||
NodeAttrs nodeAttrs;
|
||||
s.GetNodeAttrs(m_countryId, nodeAttrs);
|
||||
|
||||
if (!nodeAttrs.m_present && !GetFramework().IsRoutingActive())
|
||||
if (!nodeAttrs.m_present && !f.IsOnRoute())
|
||||
{
|
||||
BOOL const isMultiParent = nodeAttrs.m_parentInfo.size() > 1;
|
||||
BOOL const noParrent = (nodeAttrs.m_parentInfo[0].m_id == s.GetRootId());
|
||||
|
|
Loading…
Add table
Reference in a new issue