Python pcbnew.UpdateUserInterface() doesn't trigger Net Inspector to recalculate
Description
If an extension changes traces lengths and Net Inspector is opened in the background, values will not get updated even if UpdateUserInterface() is called.
I tried PCB.Refresh() as well.
This is related to rounded tracks issue. https://github.com/mitxela/kicad-round-tracks/issues/26
Steps to reproduce
-
Install Round Tracks from Plugin Manager
-
Draw two line segment between two vias, and add a net name
-
Open net inspector and rememeber the track length
-
Open Round track plugin and apply rounding
-
Observe that lengths in Net Inspector didn't change
-
Run in the terminal:
import pcbnew
pcbnew.UpdateUserInterface()
-
Values still not updated
-
Close and reopen Net Inspector
-
Finally values are updatred
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: 7.99.0-3748-ga352bd4a25, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.12.1
HarfBuzz 8.2.1
FontConfig 2.14.2
libcurl/8.4.0-DEV Schannel zlib/1.3
Platform: Windows 11 (build 22631), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Nov 29 2023 06:18:09
wxWidgets: 3.2.4 (wchar_t,wx containers)
Boost: 1.83.0
OCC: 7.7.1
Curl: 8.4.0-DEV
ngspice: 41
Compiler: Visual C++ 1936 without C++ ABI
Build settings: