diff --git a/MunkiAdmin/Singletons/MACoreDataManager.m b/MunkiAdmin/Singletons/MACoreDataManager.m index 035c2a3..cac088d 100644 --- a/MunkiAdmin/Singletons/MACoreDataManager.m +++ b/MunkiAdmin/Singletons/MACoreDataManager.m @@ -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;