eventlist: suplement to 'optimize button paint on changed caption content'

More simplified
This commit is contained in:
2022-03-10 09:38:27 +01:00
parent 96174bc313
commit e90b730d8e

View File

@@ -1086,7 +1086,7 @@ void CEventList::paintFoot(t_channel_id channel_id)
{
for(size_t i=0; i < btn_size; i++)
{
CComponentsButton *btn = static_cast<CComponentsButton*> (footer->getButtonChainObject()->getCCItem(i));
CComponentsButton *btn = footer->getButtonLabel(i);
if (g_Locale->getString(buttons[i].locale) != btn->getCaptionString())
{
btn->setCaption(buttons[i].locale);