fix(cpn): Widget name truncation, top bar widget cfg lost if more than 4 (#4584)

This commit is contained in:
Neil Horne
2024-02-05 11:23:54 +10:00
committed by GitHub
parent a40c2b8377
commit 7e706b73d5
3 changed files with 13 additions and 6 deletions
@@ -2940,7 +2940,7 @@ void OpenTxModelData::afterImport()
if (version < 220) { // re-initialise as no conversion possible
const char * layoutId = "Layout2P1"; // currently all using same default though might change for NV14
RadioLayout::init(layoutId, modelData.customScreens);
memset(&modelData.topBarData, 0, sizeof(TopBarPersistentData));
modelData.topBarData = TopBarPersistentData();
}
}