mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
- menu: don't add a separatorline ...
... when no button and no section text is given
This commit is contained in:
@@ -1003,6 +1003,7 @@ void CMenuWidget::addIntroItems(neutrino_locale_t subhead_text, neutrino_locale_
|
|||||||
{
|
{
|
||||||
if (subhead_text != NONEXISTANT_LOCALE)
|
if (subhead_text != NONEXISTANT_LOCALE)
|
||||||
addItem(new CMenuSeparator(CMenuSeparator::ALIGN_LEFT | CMenuSeparator::SUB_HEAD | CMenuSeparator::STRING, subhead_text));
|
addItem(new CMenuSeparator(CMenuSeparator::ALIGN_LEFT | CMenuSeparator::SUB_HEAD | CMenuSeparator::STRING, subhead_text));
|
||||||
|
|
||||||
addItem(GenericMenuSeparator);
|
addItem(GenericMenuSeparator);
|
||||||
|
|
||||||
if (buttontype != BTN_TYPE_NO)
|
if (buttontype != BTN_TYPE_NO)
|
||||||
@@ -1024,7 +1025,7 @@ void CMenuWidget::addIntroItems(neutrino_locale_t subhead_text, neutrino_locale_
|
|||||||
|
|
||||||
if (section_text != NONEXISTANT_LOCALE)
|
if (section_text != NONEXISTANT_LOCALE)
|
||||||
addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, section_text));
|
addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, section_text));
|
||||||
else
|
else if (buttontype != BTN_TYPE_NO)
|
||||||
addItem(GenericMenuSeparatorLine);
|
addItem(GenericMenuSeparatorLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user