Fix Full Disk Access check

This commit is contained in:
Nindi Gill 2023-06-09 21:13:20 +10:00
parent b5d2e31e96
commit e9fd130115
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1

View file

@ -135,11 +135,13 @@ struct ListRow: View {
return return
} }
guard type == .installer, if type == .installer {
FileManager.default.isReadableFile(atPath: .tccDatabasePath) else {
alertType = .fullDiskAccess guard FileManager.default.isReadableFile(atPath: .tccDatabasePath) else {
showAlert = true alertType = .fullDiskAccess
return showAlert = true
return
}
} }
if cacheDownloads { if cacheDownloads {