With new config options the Restore Window position settings are wrong and don't work
Original Reporter info from Mantis: rvk
-
Reporter name: Rik van Kekem
Original Reporter info from Mantis: rvk
- Reporter name: Rik van Kekem
Description:
With latest trunk version:
Deleting your config and restarting Lazarus will create a clean config. The window-options however are not set to default. Going to Tools>Options>Window none of the windows have a radiobutton selected. In environmentoptions.xml there is &LtPos;WindowPlacement Value="RestoreWindowSize"/> (which in my opinion is an old setting for older versions).
Steps to reproduce:
Delete your config directory and start Lazarus. Change the size of you editor-window and close Lazarus. Start Lazarus again and you see the size has reverted back.
Additional information:
I think the problem lies somewhere here:
[code]
const
IDEWndCfgFileVersion = 2;
// 2: changed default WindowPlacement from iwpRestoreWindowSize to iwpRestoreWindowGeometry
...
if FileVersion<2 then
DefaultValue:=iwpRestoreWindowSize
else
DefaultValue:=iwpRestoreWindowGeometry;
[/code]
When there is no environmentoptions.xml I think Fileversion = 0 which will select iwpRestoreWindowSize as default value. While if there is no environmentoptions.xml the iwpRestoreWindowGeometry should be selected.
Mantis conversion info:
- Mantis ID: 28789
- OS: Windows
- OS Build: all
- Build: r49953M
- Version: 1.5 (SVN)
- Fixed in revision: 49967 (#23ea13b7)