Merge nucleic/quiet-fern-viper-bqbc into dev
This commit is contained in:
@@ -425,7 +425,21 @@ enum MobileEfforts {
|
||||
static let fallback = "high"
|
||||
|
||||
static func isOrchestra(_ effort: String) -> Bool { effort == orchestraSentinel }
|
||||
static func displayName(_ effort: String) -> String { isOrchestra(effort) ? "Orchestra" : effort }
|
||||
|
||||
/// Mirrors the Mac's `ModelCatalog.effortDisplayName` — used only before a `Welcome` catalog
|
||||
/// (with its own synced labels) has arrived, so this cold-start fallback still reads as plain
|
||||
/// language rather than a raw wire value like "xhigh".
|
||||
static func displayName(_ effort: String) -> String {
|
||||
if isOrchestra(effort) { return "Orchestra" }
|
||||
switch effort {
|
||||
case "low": return "Low"
|
||||
case "medium": return "Medium"
|
||||
case "high": return "High"
|
||||
case "xhigh": return "Extra"
|
||||
case "max": return "Max"
|
||||
default: return effort.localizedCapitalized
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension WireModelCatalog {
|
||||
|
||||
Reference in New Issue
Block a user