From e46f36e2277e96e0f67785044cf0157794068d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Fri, 4 Oct 2019 14:07:16 -0700 Subject: Added user default for tile cap --- platform/macos/app/AppDelegate.m | 5 +++++ 1 file changed, 5 insertions(+) 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 { -- cgit v1.2.1