fix(cpn): missing sources when reading models and settings (#7089)

This commit is contained in:
Neil Horne
2026-02-10 12:39:42 +10:00
committed by GitHub
parent 10614599a6
commit 06ae9c6025
@@ -638,8 +638,11 @@ bool convert<GeneralSettings>::decode(const Node& node, GeneralSettings& rhs)
// the GeneralSettings struct is initialised to hardware definition defaults which is fine for new settings
// however when parsing saved settings set all inputs to None and override with parsed values
// thus any inputs not parsed will be None rather than the default
// exceptions:
// preserve those hardware defaults never written to yaml
for (int i = 0; i < CPN_MAX_INPUTS; i++) {
rhs.inputConfig[i].flexType = (Board::FlexType)Board::FLEX_NONE;
if (Boards::isInputConfigurable(i))
rhs.inputConfig[i].flexType = (Board::FlexType)Board::FLEX_NONE;
}
if (node["sticksConfig"]) {