style: resolve swift lint warnings

This commit is contained in:
Peter Steinberger
2026-01-19 13:37:28 +00:00
parent 48bfaa2371
commit 79c93b2cf8
8 changed files with 68 additions and 32 deletions

View File

@@ -80,10 +80,7 @@ struct SystemRunSettingsView: View {
.labelsHidden()
.pickerStyle(.menu)
Text(self.model.isDefaultsScope
? "Defaults apply when an agent has no overrides. Ask controls prompt behavior; fallback is used when no companion UI is reachable."
:
"Security controls whether system.run can execute on this Mac when paired as a node. Ask controls prompt behavior; fallback is used when no companion UI is reachable.")
Text(self.scopeMessage)
.font(.footnote)
.foregroundStyle(.tertiary)
.fixedSize(horizontal: false, vertical: true)
@@ -138,6 +135,15 @@ struct SystemRunSettingsView: View {
}
}
}
private var scopeMessage: String {
if self.model.isDefaultsScope {
return "Defaults apply when an agent has no overrides. " +
"Ask controls prompt behavior; fallback is used when no companion UI is reachable."
}
return "Security controls whether system.run can execute on this Mac when paired as a node. " +
"Ask controls prompt behavior; fallback is used when no companion UI is reachable."
}
}
private enum ExecApprovalsSettingsTab: String, CaseIterable, Identifiable {