Grid visibility doesn't work with a layer preset.
Description
The predefinition field "Objects/GRID" is not changing when an predefinition is selected. It is saved ok, but when you change from one predefinition that has SHOW GRID to another that has NO GRID, the icon itself change, but the grid does not hide (and the opposite too).
Steps to reproduce
- Save one predefinition with "OBJECTS/NO GRID", and another with "OBJECTS/SHOW GRID".
- Close application.
- Open application and load the predefinition NO GRID. The icon will change, but grid will not hide. If you click in the icon again, the grid will hide ok. (The opposite will have the same condition).
Kicad Version
Application: KiCad x64 on x64
Version: 9.0.3, release build
Libraries: wxWidgets 3.2.8 FreeType 2.13.3 HarfBuzz 10.2.0 FontConfig 2.15.0
Platform: Windows 10 (build 19045), edição de 64 bits, 64 bit, Little endian, wxMSW OpenGL: ATI Technologies Inc., AMD Radeon RX 580 2048SP, 4.6.0 Compatibility Profile Context 24.9.1.240813
wxWidgets: 3.2.8 (wchar_t,wx containers)
Boost: 1.88.0
OCC: 7.9.1
Curl: 8.13.0-DEV
ngspice: 44
Compiler: Visual C++ 1942 without C++ ABI
KICAD_IPC_API=ON
Locale: Lang: pt_BR Enc: UTF-8 Num: 1.234,5 Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
Edited by Cristhian Guedes