[ios] 'Buy Pro' menu item moved to top

This commit is contained in:
Igor Khmurets 2014-09-02 12:54:53 +03:00 committed by Alex Zolotarev
parent 2aa4a79a48
commit 92ccd2731f

View file

@ -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;