Repository navigation
fix: consolemode://stop and Start + Select close Big Picture / Playnite before restoring - #45
Merged
Conversation
…te before restoring Leaving console mode from outside the session restored the monitors but left the front-end running, so Big Picture ended up on the desk monitor and had to be closed by hand. LaunchService.CloseFrontEnd asks Steam to leave Big Picture (steam://close/bigpicture) or Playnite to close, falling back to WM_CLOSE on its window; MainViewModel.StopConsoleAsync then lets the loop restore the desk on its own (the same path as exiting Big Picture yourself) and restores explicitly only if console mode is still active. Xbox mode has no window and just restores. The tray's Restore is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thanks for this one, closing Big Picture / Playnite before restoring is a real gap. It needs a few adjustments before it can go in:
CI now builds and tests on Windows for every PR, so you will see the result here after the rebase. |
This was referenced Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Leaving console mode from outside the session —
consolemode://stop, or holding Start + Select — restored the monitors but left the front-end running, so Big Picture ended up on the desk monitor and had to be closed by hand.Now those requests close the front-end first:
LaunchService.CloseFrontEnd: Big Picture via Steam's ownsteam://close/bigpicture(back to the desktop client), Playnite viaCloseMainWindow; if still there halfway through,WM_CLOSEon its window.MainViewModel.StopConsoleAsync: after closing it, the existing loop notices the exit and restores the desk on its own — the same path as when you exit Big Picture yourself — and it restores explicitly only if console mode is still active.Validation
Releaseworkflow in build-only mode on this branch alone: installer + portable build,dotnet test61 passed.main.🤖 Generated with Claude Code