fix(macos): satisfy channel config swiftformat · openclaw/openclaw@ac1b48e
vincentkoc
·
2026-05-18
·
via Recent Commits to openclaw:main
File tree
apps/macos/Sources/OpenClaw
| Original file line number | Diff line number | Diff line change |
|---|
@@ -282,11 +282,10 @@ struct ConfigSchemaForm: View {
|
282 | 282 | "webhookUrl", |
283 | 283 | ] |
284 | 284 | |
285 | | -@ViewBuilder |
286 | | -private func renderChannelQuickField<Control: View>( |
| 285 | +private func renderChannelQuickField( |
287 | 286 | title: String?, |
288 | 287 | subtitle: String?, |
289 | | -@ViewBuilder control: () -> Control) -> some View |
| 288 | +@ViewBuilder control: () -> some View) -> some View |
290 | 289 | { |
291 | 290 | SettingsCardRow(title: title ?? "Value", subtitle: subtitle) { |
292 | 291 | control() |
@@ -514,6 +513,7 @@ struct ConfigSchemaForm: View {
|
514 | 513 | } |
515 | 514 | } |
516 | 515 | } |
| 516 | + |
517 | 517 | private func stringBinding(_ path: ConfigPath, defaultValue: String?) -> Binding<String> { |
518 | 518 | Binding( |
519 | 519 | get: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。