style: swiftformat cleanup

This commit is contained in:
Peter Steinberger
2025-12-21 03:44:12 +01:00
parent 3810519671
commit 04e3d0c2fe
3 changed files with 16 additions and 11 deletions

View File

@@ -120,16 +120,16 @@ struct SkillsSettings: View {
}
private var filteredSkills: [SkillStatus] {
return self.model.skills.filter { skill in
self.model.skills.filter { skill in
switch self.filter {
case .all:
return true
true
case .ready:
return !skill.disabled && skill.eligible
!skill.disabled && skill.eligible
case .needsSetup:
return !skill.disabled && !skill.eligible
!skill.disabled && !skill.eligible
case .disabled:
return skill.disabled
skill.disabled
}
}
}
@@ -338,12 +338,18 @@ private struct SkillRow: View {
Button("Install on This Mac") { self.onInstall(option, .local) }
.buttonStyle(.bordered)
.disabled(self.isBusy)
.help(self.localInstallNeedsSwitch ? "Switches to Local mode to install on this Mac." : "")
.help(
self.localInstallNeedsSwitch
? "Switches to Local mode to install on this Mac."
: "")
} else {
Button("Install on This Mac") { self.onInstall(option, .local) }
.buttonStyle(.borderedProminent)
.disabled(self.isBusy)
.help(self.localInstallNeedsSwitch ? "Switches to Local mode to install on this Mac." : "")
.help(
self.localInstallNeedsSwitch
? "Switches to Local mode to install on this Mac."
: "")
}
}
}