Skip to content

Save and restore main Talk window position and size - #1857

Open
xhon-pelushi wants to merge 1 commit into
nextcloud:mainfrom
xhon-pelushi:fix/window-bounds-15
Open

Save and restore main Talk window position and size#1857
xhon-pelushi wants to merge 1 commit into
nextcloud:mainfrom
xhon-pelushi:fix/window-bounds-15

Conversation

@xhon-pelushi

Copy link
Copy Markdown

Summary

  • Persist the main Talk window bounds in app config while moving/resizing/closing.
  • Restore saved bounds on reopen when they are valid and still visible on a display.
  • Fall back to the default size when saved bounds are missing or off-screen.

Fixes #15

Test plan

  • Open Talk Desktop, move and resize the window, quit, and reopen — position/size should restore.
  • Disconnect/move off a secondary display and reopen — should not open off-screen.
  • Fresh config without saved bounds still opens at the default size.

Persist the normal BrowserWindow bounds in app config and restore them on reopen when still visible on a connected display.

Fixes nextcloud#15

Signed-off-by: xhon-pelushi <xhon@pelushi.com>
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.

Save and restore window position and size on reopen

1 participant