Skip to content

Commit

Permalink
themes: allow AttributeText and AttributeImage on main page
Browse files Browse the repository at this point in the history
  • Loading branch information
Tupakaveli committed Sep 29, 2019
1 parent f9fcca5 commit ab4938b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/menusys.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,14 +739,17 @@ void menuHandleInputMenu()
void menuRenderMain()
{
// selected_item can't be NULL here as we only allow to switch to "Main" rendering when there is at least one device activated
theme_element_t *elem = gTheme->mainElems.first;
_menuRequestConfig();

WaitSema(menuSemaId);
theme_element_t *elem = gTheme->mainElems.first;
while (elem) {
if (elem->drawElem)
elem->drawElem(selected_item, selected_item->item->current, NULL, elem);
elem->drawElem(selected_item, selected_item->item->current, itemConfig, elem);

elem = elem->next;
}
SignalSema(menuSemaId);
}

void menuHandleInputMain()
Expand Down

0 comments on commit ab4938b

Please sign in to comment.