Skip to content

Commit

Permalink
Add sidebar item for stage_os_installer type
Browse files Browse the repository at this point in the history
  • Loading branch information
hjuutilainen committed Jan 23, 2023
1 parent ee005e0 commit 11e967e
Show file tree
Hide file tree
Showing 2 changed files with 9 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 @@ -701,6 +701,14 @@ - (void)configureSourceListInstallerTypesSection:(NSManagedObjectContext *)moc
startosinstallSmartItem.parent = mainTypesItem;
startosinstallSmartItem.originalIndexValue = 45;
startosinstallSmartItem.filterPredicate = [NSPredicate predicateWithFormat:@"munki_installer_type == %@", @"startosinstall"];

InstallerTypeSourceListItemMO *stageOSInstallerSmartItem = [NSEntityDescription insertNewObjectForEntityForName:@"InstallerTypeSourceListItem" inManagedObjectContext:moc];
stageOSInstallerSmartItem.title = @"Stage OS Installer";
stageOSInstallerSmartItem.icon = smartIcon;
stageOSInstallerSmartItem.itemType = @"smart";
stageOSInstallerSmartItem.parent = mainTypesItem;
stageOSInstallerSmartItem.originalIndexValue = 47;
stageOSInstallerSmartItem.filterPredicate = [NSPredicate predicateWithFormat:@"munki_installer_type == %@", @"stage_os_installer"];

InstallerTypeSourceListItemMO *configurationProfilesSmartItem = [NSEntityDescription insertNewObjectForEntityForName:@"InstallerTypeSourceListItem" inManagedObjectContext:moc];
configurationProfilesSmartItem.title = @"Configuration Profile";
Expand Down
1 change: 1 addition & 0 deletions MunkiAdmin/UI Controllers/MAAdvancedPackageEditor.m
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,7 @@ - (void)windowDidLoad
@"nopkg",
@"profile",
@"startosinstall",
@"stage_os_installer",
@"AdobeSetup",
@"AdobeUberInstaller",
@"AdobeAcrobatUpdater",
Expand Down

0 comments on commit 11e967e

Please sign in to comment.