changing properties in FP properties dialog are not immediately propagated to properties panel

Description

This issue is related to the footprint editor and the relationship between properties dialog and properties panel. Changing values/settings in the properties dialog are not propagated to the properties panel. This propagation should happen on closing of the properties dialog. Currently an update on the properties panel happens only if one of the cells is edited or if a new FP is selected from the library tree. The result is sometimes a content mismatch between properties dialog <--> properties panel.

Steps to reproduce

  1. open attached project, open FP editor: Zusatzplatine_BT_v8_2_pdf.zip
  2. open local library "project_lib"
  3. open FP R_1206 (there are 3 copies available) (picture 1)
  4. enable properties panel on left side
  5. doubleclick empty canvas space --> get FP properties dialog (picture 2)
  6. delete custom field "Field5" (picture 3)
  7. close FP properties dialog with "OK" button
  8. look at the left side properties panel --> custom field "Field5" still there. You can even change the content of this custom field: add some characters (picture 4+5)
  9. doubleclick the empty canvas space to reopen FP properties dialog --> the previously deleted custom field has reappeared, with the new modified content (picture 6)

fp_editor_properties_panel_2

KiCad Version

Application: KiCad Footprint Editor x64 on x64

Version: 9.99.0-4583-g565be1d25d, release build

Libraries:
	wxWidgets 3.3.1
	FreeType 2.13.3
	HarfBuzz 12.2.0
	FontConfig 2.15.0

Platform: Windows 11 (build 26200), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: Intel, Intel(R) UHD Graphics, 4.6.0 - Build 32.0.101.7076

	wxWidgets: 3.3.1 (wchar_t,STL containers)
	Boost: 1.89.0
	OCC: 7.9.2
	Curl: 8.17.0-DEV
	ngspice: 45.2
	Compiler: Visual C++ 1944 without C++ ABI
	KICAD_IPC_API=ON
	KICAD_USE_PCH=OFF

Locale: 
	Lang: en_GB
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)