Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Nudge/UI/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,14 @@ class AppDelegate: NSObject, NSApplicationDelegate {
supportedDevice in Globals.hardwareModelIDs.contains { $0.uppercased() == supportedDevice.uppercased() } }
)
LogManager.notice("Assessed Model ID found in SOFA Entry: \(deviceMatchFound)", logger: sofaLog)
nudgePrimaryState.deviceSupportedByOSVersion = deviceMatchFound
let majorRequiredVersion = VersionManager.getMajorRequiredNudgeOSVersion()
let currentMajorVersion = VersionManager.getMajorOSVersion()
if !deviceMatchFound && (majorRequiredVersion == currentMajorVersion) {
LogManager.warning("Assessed Model ID not found in SOFA Entry, but device is already running required major OS version. Disregarding unsupported UI.", logger: sofaLog)
nudgePrimaryState.deviceSupportedByOSVersion = true
} else {
nudgePrimaryState.deviceSupportedByOSVersion = deviceMatchFound
}
}
}
foundMatch = true
Expand Down