forked from organicmaps/organicmaps
[ios] Fixed auto-download while not on MapViewController.
This commit is contained in:
parent
a2d5c0e1f9
commit
8902973ee4
1 changed files with 1 additions and 1 deletions
|
@ -596,7 +596,7 @@ NSString * const kAuthorizationSegue = @"Map2AuthorizationSegue";
|
|||
|
||||
f.SetAutoDownloadListener([self](storage::TIndex const & idx)
|
||||
{
|
||||
if (platform::migrate::NeedMigrate())
|
||||
if (![self isEqual:self.navigationController.topViewController] || platform::migrate::NeedMigrate())
|
||||
return;
|
||||
bool autoDownloadEnabled = true;
|
||||
(void)Settings::Get(kAutoDownloadEnabledKey, autoDownloadEnabled);
|
||||
|
|
Loading…
Add table
Reference in a new issue