Skip to content

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

Settings: the DEFAULT badge follows the actual default environment

Gauthier Piarrette9ebb98fa43fd
diff --git a/Sources/HighballApp/SettingsView.swift b/Sources/HighballApp/SettingsView.swift
index d863066..f618c4d 100644
--- a/Sources/HighballApp/SettingsView.swift
+++ b/Sources/HighballApp/SettingsView.swift
@@ -101,7 +101,7 @@ struct EnvironmentsPane: View {
VStack(alignment: .leading, spacing: 2) {
HStack(spacing: 8) {
Text(bottle.name).font(.headline)
- if bottle.name == AppState.defaultEnvironmentName {
+ if bottle.name == state.defaultBottle?.name {
Text(L("DEFAULT")).font(.system(size: 9, weight: .bold)).padding(.horizontal, 6).padding(.vertical, 2)
.background(Capsule().fill(HB.good.opacity(0.2))).foregroundStyle(HB.good)
}