fixed custom tokens in main menu

This commit is contained in:
louis 2014-12-19 22:32:07 +01:00
parent 53a6a971a4
commit 8328a5d4d9

View File

@ -1031,6 +1031,7 @@ void cTemplateViewMenu::SetViewElements(void) {
viewElementsAllowed.insert("timers"); viewElementsAllowed.insert("timers");
viewElementsAllowed.insert("devices"); viewElementsAllowed.insert("devices");
viewElementsAllowed.insert("currentschedule"); viewElementsAllowed.insert("currentschedule");
viewElementsAllowed.insert("customtokens");
viewElementsAllowed.insert("scrollbar"); viewElementsAllowed.insert("scrollbar");
viewElementsAllowed.insert("detailheader"); viewElementsAllowed.insert("detailheader");
viewElementsAllowed.insert("tablabels"); viewElementsAllowed.insert("tablabels");
@ -1112,6 +1113,9 @@ string cTemplateViewMenu::GetViewElementName(eViewElement ve) {
case veCurrentSchedule: case veCurrentSchedule:
name = "Current Schedule"; name = "Current Schedule";
break; break;
case veCustomTokens:
name = "Custom Tokens";
break;
case veDevices: case veDevices:
name = "Devices"; name = "Devices";
break; break;
@ -1223,6 +1227,8 @@ void cTemplateViewMenu::AddPixmap(string sViewElement, cTemplatePixmap *pix, vec
ve = veTimers; ve = veTimers;
} else if (!sViewElement.compare("currentschedule")) { } else if (!sViewElement.compare("currentschedule")) {
ve = veCurrentSchedule; ve = veCurrentSchedule;
} else if (!sViewElement.compare("customtokens")) {
ve = veCustomTokens;
} else if (!sViewElement.compare("devices")) { } else if (!sViewElement.compare("devices")) {
ve = veDevices; ve = veDevices;
} else if (!sViewElement.compare("scrollbar")) { } else if (!sViewElement.compare("scrollbar")) {