Skip to content

Commit

Permalink
Added On Demand item to package list sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
hjuutilainen committed Aug 30, 2015
1 parent be0b589 commit 612b895
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MunkiAdmin/Singletons/MACoreDataManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,14 @@ - (void)configureSourceListInstallerTypesSection:(NSManagedObjectContext *)moc
configurationProfilesSmartItem.originalIndexValue = 50;
configurationProfilesSmartItem.filterPredicate = [NSPredicate predicateWithFormat:@"munki_installer_type == %@", @"profile"];

InstallerTypeSourceListItemMO *onDemandSmartItem = [NSEntityDescription insertNewObjectForEntityForName:@"InstallerTypeSourceListItem" inManagedObjectContext:moc];
onDemandSmartItem.title = @"On Demand";
onDemandSmartItem.icon = smartIcon;
onDemandSmartItem.itemType = @"smart";
onDemandSmartItem.parent = mainTypesItem;
onDemandSmartItem.originalIndexValue = 51;
onDemandSmartItem.filterPredicate = [NSPredicate predicateWithFormat:@"munki_OnDemand == %@", @(YES)];

InstallerTypeSourceListItemMO *adobeSmartItem = [NSEntityDescription insertNewObjectForEntityForName:@"InstallerTypeSourceListItem" inManagedObjectContext:moc];
adobeSmartItem.title = @"Adobe Installer";
adobeSmartItem.icon = smartIcon;
Expand Down

0 comments on commit 612b895

Please sign in to comment.