mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
- CLuaInstance::MenuAddItem: separation of "separator" and "separatorline"
This commit is contained in:
@@ -887,6 +887,8 @@ int CLuaInstance::MenuAddItem(lua_State *L)
|
|||||||
if (type == "back") {
|
if (type == "back") {
|
||||||
m->m->addItem(GenericMenuBack);
|
m->m->addItem(GenericMenuBack);
|
||||||
} else if (type == "separator") {
|
} else if (type == "separator") {
|
||||||
|
m->m->addItem(GenericMenuSeparator);
|
||||||
|
} else if (type == "separatorline") {
|
||||||
if (!b->name.empty()) {
|
if (!b->name.empty()) {
|
||||||
m->m->addItem(new CMenuSeparator(CMenuSeparator::STRING | CMenuSeparator::LINE, b->name.c_str(), NONEXISTANT_LOCALE));
|
m->m->addItem(new CMenuSeparator(CMenuSeparator::STRING | CMenuSeparator::LINE, b->name.c_str(), NONEXISTANT_LOCALE));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user