forked from organicmaps/organicmaps
[ios] 'Buy Pro' menu item moved to top
This commit is contained in:
parent
2aa4a79a48
commit
92ccd2731f
1 changed files with 5 additions and 5 deletions
|
@ -40,6 +40,9 @@
|
|||
{
|
||||
NSMutableArray * items = [[NSMutableArray alloc] init];
|
||||
|
||||
if (!GetPlatform().IsPro())
|
||||
[items addObject:@{@"Id" : @"MWMPro", @"Title" : NSLocalizedString(@"become_a_pro", nil), @"Icon" : @"MWMProIcon", @"Color" : @"15c783"}];
|
||||
|
||||
bool adsEnabled = true;
|
||||
(void)Settings::Get("MenuLinksEnabled", adsEnabled);
|
||||
if (adsEnabled)
|
||||
|
@ -49,14 +52,11 @@
|
|||
[items addObjectsFromArray:serverItems];
|
||||
}
|
||||
|
||||
if (!GetPlatform().IsPro())
|
||||
[items addObject:@{@"Id" : @"MWMPro", @"Title" : NSLocalizedString(@"become_a_pro", nil), @"Icon" : @"MWMProIcon", @"Color" : @"15c783"}];
|
||||
|
||||
[items addObject:@{@"Id" : @"MoreApps", @"Title" : NSLocalizedString(@"more_apps_guides", nil), @"Icon" : @"IconMoreApps"}];
|
||||
|
||||
NSArray * standardItems = @[@{@"Id" : @"Maps", @"Title" : NSLocalizedString(@"download_maps", nil), @"Icon" : @"IconMap"},
|
||||
@{@"Id" : @"Settings", @"Title" : NSLocalizedString(@"settings_and_more", nil), @"Icon" : @"IconSettings"},
|
||||
@{@"Id" : @"Share", @"Title" : NSLocalizedString(@"share_my_location", nil), @"Icon" : @"IconShare"}];
|
||||
@{@"Id" : @"Settings", @"Title" : NSLocalizedString(@"settings_and_more", nil), @"Icon" : @"IconSettings"},
|
||||
@{@"Id" : @"Share", @"Title" : NSLocalizedString(@"share_my_location", nil), @"Icon" : @"IconShare"}];
|
||||
[items addObjectsFromArray:standardItems];
|
||||
|
||||
return items;
|
||||
|
|
Loading…
Add table
Reference in a new issue