Skip to content

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

A blocked launcher tile says why when clicked. The tile was disabled, and macOS shows no tooltip on a disabled control, so the reason the database gives (GOG Galaxy's black sign-in window) never appeared and the player saw only "Blocked" (highball#571). The tile now stays clickable, still dimmed, and a click opens a popover with the reason; installing stays out of reach.

Gauthier Piarrette812bd9dddd14
diff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swift
index 1524314..1f9f202 100644
--- a/Sources/HighballApp/BottleView.swift
+++ b/Sources/HighballApp/BottleView.swift
@@ -216,12 +216,15 @@ struct LauncherTile: View {
var flakyReason: String? = nil
let action: () -> Void
@State private var hovering = false
+ @State private var showingReason = false
private var blocked: Bool { blockedReason != nil && !installed }
private var flaky: Bool { flakyReason != nil && !installed && !blocked }
var body: some View {
- Button(action: action) {
+ // A blocked tile still takes the click and answers with its reason: macOS shows no tooltip
+ // on a disabled control, so the hover text alone left "Blocked" unexplained (highball#571).
+ Button(action: { if blocked { showingReason = true } else { action() } }) {
VStack(spacing: 8) {
ZStack(alignment: .bottomTrailing) {
ZStack {
@@ -258,9 +261,16 @@ struct LauncherTile: View {
.opacity(blocked ? 0.55 : 1)
}
.buttonStyle(.plain)
- .disabled(busy || blocked)
+ .disabled(busy)
.help(blockedReason.map { L("Blocked on the current engine: ") + $0 }
?? flakyReason.map { L("Known issues: ") + $0 } ?? "")
+ .popover(isPresented: $showingReason, arrowEdge: .bottom) {
+ Text(L("Blocked on the current engine: ") + (blockedReason ?? ""))
+ .font(.callout)
+ .fixedSize(horizontal: false, vertical: true)
+ .frame(width: 320, alignment: .leading)
+ .padding(14)
+ }
.animation(.easeOut(duration: 0.12), value: hovering)
.onHover { hovering = $0 }
}