Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

Environment settings page: in the Settings window its header no longer shows Done next to Back, which did the same thing, and the subtitle names the engine the short way the engine prompts do (Wine 10.0) instead of the full build string that crowded the title. The full name stays under Advanced. Follow-ups to matiasmg-ok's pages (#265).

Gauthier Piarrette1d8e920ab9f6
diff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swift
index 643cc63..79a35af 100644
--- a/Sources/HighballApp/BottleView.swift
+++ b/Sources/HighballApp/BottleView.swift
@@ -332,11 +332,17 @@ struct EnvironmentSettingsPage: View {
}
VStack(alignment: .leading, spacing: 4) {
Text(bottle.name).font(.title2.bold())
- Text(engine?.displayName ?? "").font(.caption).foregroundStyle(.secondary)
+ // "Wine 10.0", as the engine prompts say it: the full build name and revision are
+ // under Advanced, and at full length they crowded the title.
+ Text(engine.map { GamePageCopy.shortEngineName($0.manifest) } ?? "")
+ .font(.caption).foregroundStyle(.secondary).lineLimit(1)
}
Spacer()
Text(L("Changes save automatically")).font(.caption).foregroundStyle(.secondary)
- Button(L("Done")) { dismiss() }.keyboardShortcut(.defaultAction)
+ // In the Settings window the page already has Back, which does the same thing.
+ if !showsInlineBack {
+ Button(L("Done")) { dismiss() }.keyboardShortcut(.defaultAction)
+ }
}
.padding(.horizontal, 20).padding(.top, 16)
ScrollView(.horizontal, showsIndicators: false) {