Persist and restore desktop window geometry
Add persistence for the desktop window’s size, position, and maximized state, restoring them on startup. Validate the saved bounds against the current display configuration and fall back to a safe or adaptive default when necessary.
Explore challenge
The problem
Add persistence for the desktop window’s size, position, and maximized state, restoring them on startup. Validate the saved bounds against the current display configuration and fall back to a safe or adaptive default when necessary.
Start with these discussions
- [Desktop] Main window size/position/maximized state are not persisted - always resets to 1280x820 after restartgithub · ▲3 · 1 comments
- 桌面端窗口尺寸无法记忆,且默认 1280×820 在高 DPI 屏幕上偏小github · ▲1 · 1 comments
- [Desktop][Bug] 窗口大小每次重启都被重置:createWindow() 硬编码 1280×820,磁盘上那个 window-state.json 没有任何代码读写github · ▲1 · 0 comments