[PR #574] [MERGED] Remember Direct Connection server addresses #2648

Closed
opened 2026-11-02 15:57:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/direct-connect-address


📝 Commits (1)

  • e6068b1 Remember Direct Connection addresses in both menus

📊 Changes

7 files changed (+114 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/front.rs (+24 -1)
📝 crates/horizon-client/src/game.rs (+7 -1)
📝 crates/horizon-client/src/game/options.rs (+11 -0)
📝 crates/horizon-client/src/game/pad.rs (+1 -0)
📝 crates/horizon-client/src/game/remote.rs (+1 -0)
📝 crates/horizon-client/src/title.rs (+35 -9)
📝 crates/horizon-client/src/title/tests.rs (+35 -0)

📄 Description

Direct Connection always opened with an empty address. Remember the field when leaving the screen and persist it in the existing options.txt lastServer entry, including when cancelling or pressing Escape. Both Classic and Horizon layouts restore it, including after leaving a server.

Fixes #571.

Validation: title-screen regressions cover Cancel, Escape, Join, clearing the field, and Horizon navigation; client all-target Clippy and formatting checked. Manual restart and in-game checks are pending, so this PR is a draft.

Manual check: enter a server address in Direct Connection, cancel, reopen, then restart the client and reopen again. Repeat in both menu layouts, and verify the address remains after disconnecting from a server. Clearing the field should also persist.


🔄 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/574 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/direct-connect-address` --- ### 📝 Commits (1) - [`e6068b1`](https://github.com/horizon-rust/horizon/commit/e6068b124695ca711a8d93798f6081117113aade) Remember Direct Connection addresses in both menus ### 📊 Changes **7 files changed** (+114 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/front.rs` (+24 -1) 📝 `crates/horizon-client/src/game.rs` (+7 -1) 📝 `crates/horizon-client/src/game/options.rs` (+11 -0) 📝 `crates/horizon-client/src/game/pad.rs` (+1 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+1 -0) 📝 `crates/horizon-client/src/title.rs` (+35 -9) 📝 `crates/horizon-client/src/title/tests.rs` (+35 -0) </details> ### 📄 Description Direct Connection always opened with an empty address. Remember the field when leaving the screen and persist it in the existing `options.txt` `lastServer` entry, including when cancelling or pressing Escape. Both Classic and Horizon layouts restore it, including after leaving a server. Fixes #571. Validation: title-screen regressions cover Cancel, Escape, Join, clearing the field, and Horizon navigation; client all-target Clippy and formatting checked. Manual restart and in-game checks are pending, so this PR is a draft. Manual check: enter a server address in Direct Connection, cancel, reopen, then restart the client and reopen again. Repeat in both menu layouts, and verify the address remains after disconnecting from a server. Clearing the field should also persist. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:57:55 +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#2648
No description provided.