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