@@ -511,6 +511,7 @@ void ThemeSetupPage::setupListbox(FormWindow *window, rect_t r, ThemePersistance
|
|||||||
auto value = listBox->getSelected();
|
auto value = listBox->getSelected();
|
||||||
if (themeColorPreview && authorText && nameText && fileCarosell) {
|
if (themeColorPreview && authorText && nameText && fileCarosell) {
|
||||||
ThemeFile *theme = tp->getThemeByIndex(value);
|
ThemeFile *theme = tp->getThemeByIndex(value);
|
||||||
|
if (!theme) return;
|
||||||
themeColorPreview->setColorList(theme->getColorList());
|
themeColorPreview->setColorList(theme->getColorList());
|
||||||
setAuthor(theme);
|
setAuthor(theme);
|
||||||
nameText->setText(theme->getName());
|
nameText->setText(theme->getName());
|
||||||
|
|||||||
Reference in New Issue
Block a user