Skip to content

Remember desktop window size and position - #69

Closed
MrSurly wants to merge 1 commit into
tmacinc:devfrom
MrSurly:issue-67-remember-window-state
Closed

Remember desktop window size and position#69
MrSurly wants to merge 1 commit into
tmacinc:devfrom
MrSurly:issue-67-remember-window-state

Conversation

@MrSurly

@MrSurly MrSurly commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Closes Desktop app should remember window size and position #67
  • Adds window_manager and a small WindowStateService, desktop-only (Android/iOS unaffected).
  • Restores saved window bounds on launch; persists on resize/move via a debounced write to the same SharedPreferences instance startup already uses.
  • Uses the continuous onWindowResize/onWindowMove events rather than the "finished" variants (onWindowResized/onWindowMoved), since those are macOS/Windows only in window_manager and this needs to work on Linux, the only desktop target actually exercised so far.
  • Kept out of the reactive AppSettings/SettingsService model on purpose -- this is ephemeral UI state nothing else needs to react to, never surfaced in the Settings screen.

Adds window_manager and a small WindowStateService, desktop-only
(not Android/iOS). Restores saved bounds on launch; persists on
resize/move via a debounced SharedPreferences write, reusing the
same prefs instance the rest of startup already fetches.

Uses the continuous onWindowResize/onWindowMove events rather than
the "finished" variants, since those are macOS/Windows only in
window_manager and this needs to work on Linux.
@MrSurly

MrSurly commented Jul 19, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #73, which merges this branch in alongside the other rolled-up issues.

@MrSurly MrSurly closed this Jul 19, 2026
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.

Desktop app should remember window size and position

1 participant