Add timer name to source lists and remove unused code (#7838)

This commit is contained in:
Neil Horne
2020-07-31 16:23:29 +02:00
committed by GitHub
parent 40a5e2f030
commit 6264e8524e
3 changed files with 19 additions and 16 deletions
+5
View File
@@ -43,6 +43,11 @@ bool TimerData::isEmpty()
return (mode == RawSwitch(SWITCH_TYPE_TIMER_MODE, 0) && name[0] == '\0' && minuteBeep == 0 && countdownBeep == COUNTDOWN_SILENT && val == 0 && persistent == 0 /*&& pvalue == 0*/);
}
QString TimerData::nameToString(int index) const
{
return RadioData::getElementName(tr("TMR", "as in Timer"), index + 1, name);
}
/*
* ModelData
*/