Skip to content

Main: Store window state using KConfig.WindowStateSaver

KWeather doesn't store window state at the moment, meaning when the window is resized or maximized, this is not remembered when the application is closed.

This MR changes that by introducing KConfig.WindowStateSaver to Main.qml to remember the window sizing and, after a recent KConfig commit, it will also remember if the window was maximized.

I am not sure how this impacts mobile, but based on how this has been introduced in other applications that have mobile support, I either don't think it affects mobile or KConfig handles this for us.

All feedback is welcome. Thanks!

Merge request reports