welcome: offer opening an existing VM instead of the gallery

The welcome placeholder's second tile linked out to the UTM Gallery
website, which is already reachable from the Help menu and from the new
VM wizard. Opening an existing .utm bundle had no tile at all, so the
most common way to get a VM into a fresh install was the least
discoverable. Point the tile at the existing OpenVirtualMachine
notification instead.

Assisted-by: Claude:claude-opus-5
This commit is contained in:
osy
2026-09-21 09:04:53 -05:00
parent 10799d9f46
commit 24fc103404
+3 -4
View File
@@ -78,14 +78,13 @@ fileprivate struct Title: View {
fileprivate struct FirstRow: View {
@EnvironmentObject private var data: UTMData
@Environment(\.openURL) private var openURL
var body: some View {
TileButton(Label(String.create, systemImage: "plus.circle")) {
data.newVM()
}
TileButton(Label(String.browse, systemImage: "arrow.down.circle")) {
openURL(URL(string: "https://mac.getutm.app/gallery/")!)
TileButton(Label(String.open, systemImage: "doc.circle")) {
NotificationCenter.default.post(name: NSNotification.OpenVirtualMachine, object: nil)
}
}
}
@@ -105,7 +104,7 @@ fileprivate struct SecondRow: View {
fileprivate extension String {
static let create = NSLocalizedString("Create a New Virtual Machine", comment: "Welcome view")
static let browse = NSLocalizedString("Browse UTM Gallery", comment: "Welcome view")
static let open = NSLocalizedString("Open Existing Virtual Machine", comment: "Welcome view")
static let guide = NSLocalizedString("User Guide", comment: "Welcome view")
static let support = NSLocalizedString("Support", comment: "Welcome view")
static let server = NSLocalizedString("Server", comment: "Server view")