Skip to content

fix(AccountList): auto-start game after login when setting enabled (#246)#250

Merged
lshw54 merged 1 commit intocodefrom
fix/issue-246-auto-start-game
Apr 26, 2026
Merged

fix(AccountList): auto-start game after login when setting enabled (#246)#250
lshw54 merged 1 commit intocodefrom
fix/issue-246-auto-start-game

Conversation

@lshw54
Copy link
Copy Markdown
Collaborator

@lshw54 lshw54 commented Apr 26, 2026

What

When "登入完成後開啟遊戲" (Launch game after login) is checked in Settings, the game should auto-start after login. Currently nothing happens.

Fix

After the first successful loadList on AccountList mount, check ui.autoStartGame — if enabled and accounts exist, call handleStartGame(). Uses a one-shot pendingAutoStart flag so retry / game-switch don't re-trigger.

Mirrors WPF loginWorker_RunWorkerCompleted L1421-1429.

Closes #246

) When 'Launch game after login' (autoStartGame) is checked in Settings, the game now automatically starts after the first successful account list load. Mirrors WPF loginWorker_RunWorkerCompleted L1421-1429. Uses a one-shot flag so retry / game-switch don't re-trigger.
@lshw54 lshw54 self-assigned this Apr 26, 2026
@lshw54 lshw54 merged commit 52f4e19 into code Apr 26, 2026
2 checks passed
@lshw54 lshw54 deleted the fix/issue-246-auto-start-game branch April 26, 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.

App doesn't automatically open the game after user login when "登入完成後開啟遊戲" option is turned on

1 participant