content: show notice when using build incompatible with virtualization

This commit is contained in:
osy 2023-09-04 13:14:11 -07:00
parent 8482fec6be
commit a7368fdd31
2 changed files with 6 additions and 0 deletions

View file

@ -78,6 +78,9 @@ struct BuildConfigView: View {
}))
}
}
if build.arch == "arm64" && Float(build.build) ?? 0 < 21390.0 {
Text("Note: This build does not work for virtualization on Apple Silicon.")
}
}.disabled(worker.isBusy)
}
Spacer()

View file

@ -57,6 +57,9 @@ struct SimpleContentView: View {
Text(edition.display).tag(edition.id)
}
}
if isWindows10 && selected.architecture == "ARM64" {
Text("Note: This build does not work for virtualization on Apple Silicon.")
}
}.disabled(worker.isBusy)
.onChange(of: isWindows10) { newValue in
worker.refreshEsdCatalog(windows10: newValue)