7.0.0-nightly property editor is not updated if new property is selected

This bug (?) is not a show-stopper, it’s only a bit baffling. In short, if the visibility of a property is unset in the property manager, and immediately after that a new item is selected on the board, the visibility of that property is not inserted into the property manager. One has to click twice on the item. Here are 5 screenshots that demonstrate the issue:

  1. H1 is highlighted, and the property manager shows that this label is visible.

  1. Then the visibility is unchecked, and the label becomes hidden.

  1. Next, H2 is selected with a single mouse click. This is reflected in the fact that the label is now highlighted. However, the visibility is still unchecked in the property manager.

  1. One has to click on H2 once more, at which point the visibility is checked.

  1. Now the visibility can be unset, so that H2 disappears.

Application: KiCad PCB Editor x64 on x64

Version: (7.0.0-rc1-253-g7844602210), release build

Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.0.1
FontConfig 2.14.1
libcurl/7.86.0-DEV Schannel zlib/1.2.13

Platform: Windows 11 (build 22000), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
Date: Jan 18 2023 06:49:17
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.2
Curl: 7.86.0-DEV
ngspice: 38
Compiler: Visual C++ 1934 without C++ ABI

Build settings:
KICAD_SPICE=ON

I see the same behaviour. I would certainly expect that the properties update on the first click on the new object. I would consider it a bug.

Tested on yesterdays nightly from copr for fedora 37 (tonights nightly not available due to failed build).

Application: KiCad x86_64 on x86_64

Version: 7.0.0-rc1-1.20230117git26c6760.fc37, release build

Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.2.0
FontConfig 2.14.1
libcurl/7.85.0 OpenSSL/3.0.5 zlib/1.2.12 brotli/1.0.9 libidn2/2.3.4 libpsl/0.21.1 (+libidn2/2.3.3) libssh/0.10.4/openssl/zlib nghttp2/1.51.0

Platform: , 64 bit, Little endian, wxGTK, KDE, wayland

Build Info:
Date: Jan 17 2023 18:15:10
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.78.0
OCC: 7.5.0
Curl: 7.85.0
ngspice: 38
Compiler: GCC 12.2.1 with C++ ABI 1017

Build settings:
KICAD_SPICE=ON

Then I would just go ahead, and open a ticket on gitlab.

The issue can be found in 7.0.0-nightly property editor is not updated if new property is selected (#13609) · Issues · KiCad / KiCad Source Code / kicad · GitLab