[PR #3731] [MERGED] Launcher: every text field uses the shared LineEdit #5178

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

📋 Pull Request Information

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

Base: main ← Head: refactor/launcher-fields-share-line-edit


📝 Commits (5)

  • 9458e6e Launcher: every text field uses the shared LineEdit
  • 3e83f8a Merge origin/main into refactor/launcher-fields-share-line-edit
  • 09146bf Launcher: rustfmt
  • 17864b8 Merge remote-tracking branch 'origin/main' into refactor/launcher-fields-share-line-edit
  • 1582cc6 Merge origin/main into refactor/launcher-fields-share-line-edit

📊 Changes

9 files changed (+152 additions, -303 deletions)

View changed files

📝 launcher/src/instances_page.rs (+5 -3)
📝 launcher/src/internet.rs (+2 -2)
📝 launcher/src/launch_page.rs (+12 -4)
📝 launcher/src/line_edit.rs (+30 -1)
📝 launcher/src/main.rs (+46 -76)
📝 launcher/src/mods_page.rs (+18 -38)
📝 launcher/src/multiplayer_page.rs (+2 -2)
📝 launcher/src/servers_page.rs (+36 -176)
📝 launcher/src/switch_page.rs (+1 -1)

📄 Description

What and why

Continues #2131, which was closed for inactivity and cannot be reopened now that its branch moved. Follow-up to #2130. That PR made Game arguments edit at the caret with the shared LineEdit (launcher/src/line_edit.rs); the other text fields still kept their own String and key handling, so none of them could move the caret, select, undo, or type Space on Windows (it arrives without a character).

These now use LineEdit: Join a friend, Proxy, the Mods search, and the Servers fields (create, players, console, MOTD, port, token, email), plus the fields main added since: instance name and group, pre-launch, wrapper and launch env, offline name, server name, delete confirmation. type_key and clip, which only the old fields used, go.

Vanilla reference

Horizon-only (the launcher has no vanilla counterpart).

Self-check

pr_ready (tools/pr_ready.py --base origin/main, 57d4801bf)

Check Result
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 416 passed
launcher rustfmt ✅
launcher clippy ✅
launcher tests ✅ 263 passed
Parity ❌ not run: tools/parity.py imports fcntl, which Windows does not have. The diff touches only launcher/, no game crate.
Scope ⚠️ pr_ready says "mixes game, launcher"; git diff origin/main...HEAD is 9 files, all under launcher/src/

Screenshots

Mods search with a selection (con of "Working controls" highlighted), which the old field could not do:

launcher3

🤖 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/3731 **Author:** [@Joansitoh](https://github.com/Joansitoh) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `refactor/launcher-fields-share-line-edit` --- ### 📝 Commits (5) - [`9458e6e`](https://github.com/horizon-rust/horizon/commit/9458e6e99e1405f59a97a4255b712f15b6f10b04) Launcher: every text field uses the shared LineEdit - [`3e83f8a`](https://github.com/horizon-rust/horizon/commit/3e83f8a48ac7b3adfcd8ef61b1a1b881d41ba709) Merge origin/main into refactor/launcher-fields-share-line-edit - [`09146bf`](https://github.com/horizon-rust/horizon/commit/09146bfecfe333ba75de3e1ffaa571aa2151567e) Launcher: rustfmt - [`17864b8`](https://github.com/horizon-rust/horizon/commit/17864b867d5002650cce5aac127c8bc52a53414c) Merge remote-tracking branch 'origin/main' into refactor/launcher-fields-share-line-edit - [`1582cc6`](https://github.com/horizon-rust/horizon/commit/1582cc638f4286ffa5d084637baf9d2f25b0abba) Merge origin/main into refactor/launcher-fields-share-line-edit ### 📊 Changes **9 files changed** (+152 additions, -303 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/instances_page.rs` (+5 -3) 📝 `launcher/src/internet.rs` (+2 -2) 📝 `launcher/src/launch_page.rs` (+12 -4) 📝 `launcher/src/line_edit.rs` (+30 -1) 📝 `launcher/src/main.rs` (+46 -76) 📝 `launcher/src/mods_page.rs` (+18 -38) 📝 `launcher/src/multiplayer_page.rs` (+2 -2) 📝 `launcher/src/servers_page.rs` (+36 -176) 📝 `launcher/src/switch_page.rs` (+1 -1) </details> ### 📄 Description ## What and why Continues #2131, which was closed for inactivity and cannot be reopened now that its branch moved. Follow-up to #2130. That PR made Game arguments edit at the caret with the shared `LineEdit` (`launcher/src/line_edit.rs`); the other text fields still kept their own `String` and key handling, so none of them could move the caret, select, undo, or type Space on Windows (it arrives without a character). These now use `LineEdit`: Join a friend, Proxy, the Mods search, and the Servers fields (create, players, console, MOTD, port, token, email), plus the fields main added since: instance name and group, pre-launch, wrapper and launch env, offline name, server name, delete confirmation. `type_key` and `clip`, which only the old fields used, go. ## Vanilla reference Horizon-only (the launcher has no vanilla counterpart). ## Self-check **pr_ready** (`tools/pr_ready.py --base origin/main`, 57d4801bf) | Check | Result | | --- | --- | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 416 passed | | launcher rustfmt | ✅ | | launcher clippy | ✅ | | launcher tests | ✅ 263 passed | | Parity | ❌ not run: `tools/parity.py` imports `fcntl`, which Windows does not have. The diff touches only `launcher/`, no game crate. | | Scope | ⚠️ pr_ready says "mixes game, launcher"; `git diff origin/main...HEAD` is 9 files, all under `launcher/src/` | ## Screenshots Mods search with a selection (`con` of "Working controls" highlighted), which the old field could not do: <img width="1196" height="769" alt="launcher3" src="https://github.com/user-attachments/assets/7eff579c-ab91-412e-9f9f-87ecd50e27c0" /> 🤖 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:10:46 +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#5178
No description provided.