From aa198594fdf6ca1266d6d25dcd9ae7a8c0bd2c4c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 21 Dec 2025 00:48:58 +0000 Subject: [PATCH] fix(mac): avoid buttonStyle ternary --- apps/macos/Sources/Clawdis/SkillsSettings.swift | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/apps/macos/Sources/Clawdis/SkillsSettings.swift b/apps/macos/Sources/Clawdis/SkillsSettings.swift index 3f2a0ab99..2725f0632 100644 --- a/apps/macos/Sources/Clawdis/SkillsSettings.swift +++ b/apps/macos/Sources/Clawdis/SkillsSettings.swift @@ -334,10 +334,17 @@ private struct SkillRow: View { .buttonStyle(.borderedProminent) .disabled(self.isBusy) } - Button("Install on This Mac") { self.onInstall(option, .local) } - .buttonStyle(self.showGatewayInstall ? .bordered : .borderedProminent) - .disabled(self.isBusy) - .help(self.localInstallNeedsSwitch ? "Switches to Local mode to install on this Mac." : "") + if self.showGatewayInstall { + 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." : "") + } 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." : "") + } } } } else {