Hide bootable installer button for macOS Catalina and older

This commit is contained in:
Nindi Gill 2023-06-13 18:58:19 +10:00
parent fbc6767df1
commit 6b4aec4e50
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1

View file

@ -83,6 +83,7 @@ struct ListRowInstaller: View {
} }
.help("Download and export macOS Installer") .help("Download and export macOS Installer")
.buttonStyle(.mistAction) .buttonStyle(.mistAction)
if installer.bigSurOrNewer {
Button { Button {
pressButton(.volumeSelection) pressButton(.volumeSelection)
} label: { } label: {
@ -93,6 +94,7 @@ struct ListRowInstaller: View {
.help("Create bootable macOS Installer") .help("Create bootable macOS Installer")
.buttonStyle(.mistAction) .buttonStyle(.mistAction)
} }
}
.clipShape(Capsule()) .clipShape(Capsule())
} }
.alert(isPresented: $showAlert) { .alert(isPresented: $showAlert) {