Skip to content

Launcher: a double-click on the top bar zooms the window, and a game without a Mac app offers Build - #102

Merged
LNPANDY merged 2 commits into
LNPANDY:mainfrom
v0lumehi:titlebar-and-build
Oct 28, 2026
Merged

LNPANDY merged 2 commits into
LNPANDY:mainfrom
v0lumehi:titlebar-and-build

Conversation

@v0lumehi

Copy link
Copy Markdown
Collaborator

A double-click on the launcher's top bar now does what the system says, and a game without a Mac app offers Build instead of "Show iPhone build".

Double-click on the top bar:

  • The launcher's own top bar sits in the transparent title bar and swallowed clicks, so double-clicking it did nothing.
  • A double-click on empty bar now does what System Settings says for "Double-click a window's title bar to" (AppleActionOnDoubleClick, falling back to AppleMiniaturizeOnDoubleClick):
    • Zoom (the default): fills the screen, traffic lights kept, not full screen.
    • Minimize.
    • Do nothing.
  • Dragging by the bar still moves the window; tabs, search and Build game keep their clicks.

Build instead of "Show iPhone build":

  • A game whose Mac app is gone but has an IPA showed "Show iPhone build" as its main button, which read as if Play had disappeared for no reason.
  • The main button is now Play with a Mac app, "Open on " when installed on a device, otherwise Build.
  • The IPA stays reachable via Manage, Reveal in Finder. It reveals what exists (Mac app, else IPA, else iOS app) and is hidden when nothing does.

Stale paths:

  • The library forgets paths to builds that were deleted, so nothing points at them.
  • Only on a mounted volume: a game on an external drive that is not connected keeps its paths (covered by a test with a fake unmounted volume).

Checked:

  • swift build -c release clean, swift test: 173 tests, 0 failures (new PrimaryActionTests.swift).
  • Reviewed in a preview build.
  • Not checked: zoom and drag on every macOS setting combination beyond the unit-tested decision.
Build game as the main button (IPA only) Manage, Reveal in Finder still there

… without a Mac app offers Build

The bar sits in the title-bar area and took the click, so macOS never saw the double-click. An empty part now follows Desktop & Dock (Maximize zooms, Minimize miniaturizes, None does nothing) and still drags the window. The primary button is Play, Open on <device>, or Build; Reveal in Finder shows the Mac app, else the IPA, else the iOS app; paths to files that are gone are cleared when the library loads or a scan ends.
@LNPANDY
LNPANDY merged commit 7af6dbe into LNPANDY:main Oct 28, 2026
6 of 7 checks passed
@v0lumehi
v0lumehi deleted the titlebar-and-build branch November 1, 2026 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants