[PR #3451] [MERGED] Launcher: Join and other quick starts wait for the version's setup #4990

Closed
opened 2026-11-03 05:09:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3451
Author: @ludovic111
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: fix/launcher-join-while-preparing


📝 Commits (1)

  • 40073ab Launcher: Join and other quick starts wait for the version's setup

📊 Changes

4 files changed (+42 additions, -9 deletions)

View changed files

📝 launcher/src/main.rs (+36 -2)
📝 launcher/src/modpacks_page.rs (+4 -4)
📝 launcher/src/multiplayer_page.rs (+1 -1)
📝 launcher/src/worlds_page.rs (+1 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Fixes a player report from #horizon-bugs (launcher 0.2.23): while a version is still in its first-time setup download, the Multiplayer list's Join stays active, and clicking it starts the half-installed game (an empty white window) while the download goes on.

Cause. Join was greyed out only while a game ran, and disabled() changes the look, not the click: Join's click went to quick_play → play(), which checked only for a running game, never for a preparation under way or an unprepared version. A world's Play, joining a friend by code and a pack's Play take the same road.

Fix. One rule for every shortcut that starts the game at once: starts_now (from Play's own play_press): the version is prepared, no preparation is running, no game is running or starting.

  • play() and play_pack refuse otherwise, so a click can't get through whatever a button looks like.
  • Join (Multiplayer), a world's Play (Worlds), the friend-code row and a pack's Play are drawn from the same rule (can_start / can_start_selected).
  • Play itself is unchanged: an owner's Play on an unprepared version still prepares first, then plays.

Test: shortcuts_start_only_when_play_would (setup under way, Prepare again under way, not prepared, running). Not reproduced in a real window: putting a version into first-time setup needs an account that owns the game. The redesign's server list (R-phase) will use the same can_start.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 5c2bc0af4)

Check Result
Scope ✅ 4 files, +42 −9
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 408 passed
launcher rustfmt ✅
launcher clippy ✅
launcher tests ✅ 246 passed
Parity ➖ lan_integration listed for CI (the launcher is not in the LAN suite)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3451 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/launcher-join-while-preparing` --- ### 📝 Commits (1) - [`40073ab`](https://github.com/horizon-rust/horizon/commit/40073ab9c0acb63d6766b1cf1d216b471963387b) Launcher: Join and other quick starts wait for the version's setup ### 📊 Changes **4 files changed** (+42 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/main.rs` (+36 -2) 📝 `launcher/src/modpacks_page.rs` (+4 -4) 📝 `launcher/src/multiplayer_page.rs` (+1 -1) 📝 `launcher/src/worlds_page.rs` (+1 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes a player report from #horizon-bugs (launcher 0.2.23): while a version is still in its first-time setup download, the Multiplayer list's **Join** stays active, and clicking it starts the half-installed game (an empty white window) while the download goes on. **Cause.** Join was greyed out only while a game ran, and `disabled()` changes the look, not the click: Join's click went to `quick_play` → `play()`, which checked only for a running game, never for a preparation under way or an unprepared version. A world's Play, joining a friend by code and a pack's Play take the same road. **Fix.** One rule for every shortcut that starts the game at once: `starts_now` (from Play's own `play_press`): the version is prepared, no preparation is running, no game is running or starting. - `play()` and `play_pack` refuse otherwise, so a click can't get through whatever a button looks like. - Join (Multiplayer), a world's Play (Worlds), the friend-code row and a pack's Play are drawn from the same rule (`can_start` / `can_start_selected`). - Play itself is unchanged: an owner's Play on an unprepared version still prepares first, then plays. Test: `shortcuts_start_only_when_play_would` (setup under way, Prepare again under way, not prepared, running). Not reproduced in a real window: putting a version into first-time setup needs an account that owns the game. The redesign's server list (R-phase) will use the same `can_start`. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 5c2bc0af4) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +42 −9 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 408 passed | | launcher rustfmt | ✅ | | launcher clippy | ✅ | | launcher tests | ✅ 246 passed | | Parity | ➖ lan_integration listed for CI (the launcher is not in the LAN suite) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:09:26 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4990
No description provided.