From 6b4aec4e5016552c62d927a644c5e1af57e3c026 Mon Sep 17 00:00:00 2001 From: Nindi Gill Date: Tue, 13 Jun 2023 18:58:19 +1000 Subject: [PATCH] Hide bootable installer button for macOS Catalina and older --- Mist/Views/List/ListRowInstaller.swift | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Mist/Views/List/ListRowInstaller.swift b/Mist/Views/List/ListRowInstaller.swift index f3ed2e0..1086072 100644 --- a/Mist/Views/List/ListRowInstaller.swift +++ b/Mist/Views/List/ListRowInstaller.swift @@ -83,15 +83,17 @@ struct ListRowInstaller: View { } .help("Download and export macOS Installer") .buttonStyle(.mistAction) - Button { - pressButton(.volumeSelection) - } label: { - Image(systemName: "externaldrive") - .font(.body.bold()) - .padding(.vertical, 1) + if installer.bigSurOrNewer { + Button { + pressButton(.volumeSelection) + } label: { + Image(systemName: "externaldrive") + .font(.body.bold()) + .padding(.vertical, 1) + } + .help("Create bootable macOS Installer") + .buttonStyle(.mistAction) } - .help("Create bootable macOS Installer") - .buttonStyle(.mistAction) } .clipShape(Capsule()) }