Skip to content

Save launcher geometry when using 'Close On Launch'#10090

Closed
boxrocket6803 wants to merge 1 commit intoFacepunch:masterfrom
boxrocket6803:save-launcher-geo
Closed

Save launcher geometry when using 'Close On Launch'#10090
boxrocket6803 wants to merge 1 commit intoFacepunch:masterfrom
boxrocket6803:save-launcher-geo

Conversation

@boxrocket6803
Copy link
Copy Markdown
Contributor

@boxrocket6803 boxrocket6803 commented Feb 27, 2026

Summary

The cookie for the launcher geometry was being saved when manually closing the window, but not when the window was automatically closed (e.g. when opening an addon with close on launch enabled), this saves the geometry for both cases.

Motivation & Context

Annoyed me, sometimes the launcher would get stuck in weird places for weeks on end.

Checklist

  • Code follows existing style and conventions
  • No unnecessary formatting or unrelated changes
  • Public APIs are documented (if applicable)
  • Unit tests added where applicable and all passing
  • I’m okay with this PR being rejected or requested to change 🙂

Fixes position not being saved when using "Close On Launch"
Copilot AI review requested due to automatic review settings February 27, 2026 03:36
@boxrocket6803 boxrocket6803 marked this pull request as draft February 27, 2026 03:37
@boxrocket6803 boxrocket6803 changed the title Save launcher geometry when using "Close On Launch Save launcher geometry when using 'Close On Launch' Feb 27, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where the launcher window's position and size were not being saved when the "Close On Launch" feature was enabled. When users launch a project with this option enabled, the window is destroyed programmatically without triggering the normal close handler that saves the geometry.

Changes:

  • Added geometry saving before window destruction in the OnSuccessfulLaunch() method to ensure window position is persisted when using "Close On Launch"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@boxrocket6803 boxrocket6803 marked this pull request as ready for review February 27, 2026 03:42
@handsomematt handsomematt added the triaged triaged pull-requests are replicated on the internal sbox repo label Mar 25, 2026
@sboxbot
Copy link
Copy Markdown
Contributor

sboxbot commented Apr 7, 2026

This PR has been merged upstream.

@sboxbot sboxbot added the accepted this pull request was accepted, hurrah! label Apr 7, 2026
@sboxbot sboxbot closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted this pull request was accepted, hurrah! triaged triaged pull-requests are replicated on the internal sbox repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants