fix(mac): avoid buttonStyle ternary
parent
406a94bf76
commit
aa198594fd
|
|
@ -334,10 +334,17 @@ private struct SkillRow: View {
|
||||||
.buttonStyle(.borderedProminent)
|
.buttonStyle(.borderedProminent)
|
||||||
.disabled(self.isBusy)
|
.disabled(self.isBusy)
|
||||||
}
|
}
|
||||||
Button("Install on This Mac") { self.onInstall(option, .local) }
|
if self.showGatewayInstall {
|
||||||
.buttonStyle(self.showGatewayInstall ? .bordered : .borderedProminent)
|
Button("Install on This Mac") { self.onInstall(option, .local) }
|
||||||
.disabled(self.isBusy)
|
.buttonStyle(.bordered)
|
||||||
.help(self.localInstallNeedsSwitch ? "Switches to Local mode to install on this Mac." : "")
|
.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 {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue