Fixes applied:
- Make sure MainWindow destructor executed on app exit
- MainWindow: Remove standard KDE Session Manager methods - they work only in KDE login/logout and don't work in Windows
- MainWindow, SignEncrypt dialog, DecryptVerify dialog: Use custom save/read config methods based on helper functions from KWindowConfig
New implementation works fine with KDE SM:
- saved session load happens after custom readConfig() and overrides window settings with values from session
- session save happens before custom writeConfig() and saves data to ~/.config/session/ - it doesn't impact writeConfig()
This implementation works fine under Win10 on multi-monitor multi-dpi setup.
Appropriate setting is loaded in case of display switch or main monitor switch.
Example of config file which stores size for several resolutions:
[SignEncryptFilesWizard] Height 1200=604 Height 720=451 Width 1280=458 Width 1920=597
Related bug reports: