Skip to content

Commit

Permalink
move sofa logic to a function so it can be called after other logc
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed May 24, 2024
1 parent 2a32c12 commit b536468
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Nudge/UI/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// print("applicationWillBecomeActive")
}

// Pre-Launch Logic
func applicationWillFinishLaunching(_ notification: Notification) {
// print("applicationWillFinishLaunching")
func sofaPreLaunchLogic() {
// TODO: Add more logging to "unsupported devices" UI.
// TODO: Add localization for "unsupported devices" text fields
// TODO: Get someone to update JAMF JSON schema for all the new keys and wiki
Expand Down Expand Up @@ -255,11 +253,17 @@ class AppDelegate: NSObject, NSApplicationDelegate {
LogManager.error("Could not fetch SOFA feed", logger: sofaLog)
}
}
}

// Pre-Launch Logic
func applicationWillFinishLaunching(_ notification: Notification) {
// print("applicationWillFinishLaunching")
handleSMAppService()
checkForBadProfilePath()
handleCommandLineArguments()
applyGracePeriodLogic()
applyRandomDelayIfNecessary()
sofaPreLaunchLogic()
updateNudgeState()
handleSoftwareUpdateRequirements()
}
Expand Down

0 comments on commit b536468

Please sign in to comment.