Net class colors lost on crash (not backed up either; serialization issue?)

Description

If a netclass is assigned a color in PCBNew and KiCad crashes, the colors are reset to default.

Possibly related (not sure if it's related to recovery): it also appears that $project-backup (zip) values of .kicad_pro->net_settings->classes->pcb_color are not correctly backed up automatically. pcb_colors configured in the original .kicad_pro appear to be set in rgb(int, int, int), but the values in the automatic backups are rgba(int, int, int, float).

Steps to reproduce

  1. Create netclass.
  2. Set custom color in PCBNew.
  3. Have KiCad crash.
  4. Reopen project.
  5. Net class colors are reset to default.

or

  1. Create netclass.
  2. Set custom color in PCBNew.
  3. Wait for an automatic backup to occur.
  4. Unzip backup to new location.
  5. Open new/backed up project.
  6. Net class colors are reset to default.

KiCad Version

Application: KiCad PCB Editor x64 on x64

Version: 8.0.1, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.12.1
	HarfBuzz 8.3.0
	FontConfig 2.14.2
	libcurl/8.5.0-DEV Schannel zlib/1.3

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

Build Info:
	Date: Mar 15 2024 01:52:47
	wxWidgets: 3.2.4 (wchar_t,wx containers)
	Boost: 1.83.0
	OCC: 7.7.1
	Curl: 8.5.0-DEV
	ngspice: 42
	Compiler: Visual C++ 1936 without C++ ABI

Build settings: