Skip to content

Remember window size and position between sessions #4

Description

@petterlovbom-del

Hi!
First of all — thank you for a great desktop player for Sveriges Radio.
I’ve noticed that the application does not remember the window size or screen position between sessions. Every time the app starts, the window resets to its default size and placement.
This is standard behavior for most desktop applications and becomes especially noticeable for users running multi-monitor setups or custom window layouts.
From what I can see, this is likely not implemented rather than a bug in Slint/winit.
Expected behavior
The app should restore:

Last window size

Last window position (screen coordinates)

Suggested approach
Persist window geometry (size + position) to a small config file on exit, and restore it on startup. This can likely be implemented using Slint/winit window APIs and a simple JSON/TOML config in the user config directory.
This would greatly improve the desktop experience.
Thanks again for the project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions