diff options
Diffstat (limited to 'platform/macos/app/AppDelegate.m')
-rw-r--r-- | platform/macos/app/AppDelegate.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/macos/app/AppDelegate.m b/platform/macos/app/AppDelegate.m index eda989d7f9..8a184b094d 100644 --- a/platform/macos/app/AppDelegate.m +++ b/platform/macos/app/AppDelegate.m @@ -132,6 +132,11 @@ NSString * const MGLLastMapDebugMaskDefaultsKey = @"MGLLastMapDebugMask"; } [self.offlinePacksArrayController bind:@"content" toObject:[MGLOfflineStorage sharedOfflineStorage] withKeyPath:@"packs" options:nil]; + + NSInteger maximumAllowedMapboxTiles = [[NSUserDefaults standardUserDefaults] integerForKey:@"MBXMaximumAllowedMapboxTiles"]; + if (maximumAllowedMapboxTiles) { + [[MGLOfflineStorage sharedOfflineStorage] setMaximumAllowedMapboxTiles:maximumAllowedMapboxTiles]; + } } - (void)applicationWillTerminate:(NSNotification *)notification { |