From 8cfc13fe2c7cba822b2aa5b6bcb4e63cf7b2b86b Mon Sep 17 00:00:00 2001 From: socksprox Date: Tue, 27 Oct 2026 17:49:50 +0100 Subject: [PATCH] launcher: the account list follows changes made outside the window accounts.json was read once at start-up, so an offline name added or forgotten through the CLI or another window left the running window without the name's row (and its Forget button) until relaunch. Page switches and opening the account chip's menu read it again, as the game's made-up name already was. Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- launcher/src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 3bb60178c..bb54ab39f 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -481,8 +481,10 @@ impl Launcher { } fn go(&mut self, page: Page) { - // The game may have made up a name since: read it again (a small file, once a switch). + // The game may have made up a name since, and the CLI or another window may have + // changed the accounts: read them again (small files, once a switch). self.offline_name = offline_name(); + self.accounts = Accounts::load(); if page != self.page { self.page = page; self.switches += 1; @@ -1692,6 +1694,10 @@ impl Launcher { ) .on_click(cx.listener(|this, _: &ClickEvent, _, cx| { this.account_menu = !this.account_menu; + if this.account_menu { + // Who can play may have changed elsewhere since the window opened. + this.accounts = Accounts::load(); + } cx.notify(); })); let account = div()