I made this simple application and made it so that the window position and size is saved on closing the app, so that the next time the user opens the app, he can resume his work directly.
https://drive.google.com/drive/folders/1YJFU2u0LNC7YO3Hwk3ts32EDh-Q965Gi?usp=sharing
This is the link to the source code of my app.
Can anyone review the code and point out my mistake?