fix(color): crash if radio shut down on some menu pages (#5379)

This commit is contained in:
philmoz
2024-08-05 09:56:23 +10:00
committed by GitHub
parent 5254c8c646
commit de8dc70806
@@ -277,6 +277,8 @@ uint8_t TabsGroup::tabCount() const { return header->tabCount(); }
void TabsGroup::setCurrentTab(unsigned index)
{
if (deleted()) return;
header->setCurrentIndex(index);
PageTab* tab = header->pageTab(index);