diff options
author | louis <louis.braun@gmx.de> | 2013-04-13 16:02:36 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-04-13 16:02:36 +0200 |
commit | 47e4d8da9edc889886edf683390d36bb4a515490 (patch) | |
tree | 914badabee98bf1f1e71dbe26b92dbeab8aff3eb /menuitem.c | |
parent | 4cfdca4afe04f9f4055800b1622f9122f87287ba (diff) | |
download | skin-nopacity-47e4d8da9edc889886edf683390d36bb4a515490.tar.gz skin-nopacity-47e4d8da9edc889886edf683390d36bb4a515490.tar.bz2 |
Added Channel Number in narrow Timer menu
Diffstat (limited to 'menuitem.c')
-rw-r--r-- | menuitem.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -705,7 +705,12 @@ std::string cNopacityTimerMenuItem::CreateDate(void) { strftime(buffer, sizeof(buffer), "%Y%m%d", &tm_r); day = buffer; } - return *cString::sprintf("%s%s%s (%02d:%02d-%02d:%02d)", *dayName, *dayName && **dayName ? " " : "", *day, Timer->Start() / 100, Timer->Start() % 100, Timer->Stop() / 100, Timer->Stop() % 100); + cString dateString; + if (Timer->Channel()) + dateString = *cString::sprintf("%d - %s%s%s (%02d:%02d-%02d:%02d)", Timer->Channel()->Number(), *dayName, *dayName && **dayName ? " " : "", *day, Timer->Start() / 100, Timer->Start() % 100, Timer->Stop() / 100, Timer->Stop() % 100); + else + dateString = *cString::sprintf("%s%s%s (%02d:%02d-%02d:%02d)", *dayName, *dayName && **dayName ? " " : "", *day, Timer->Start() / 100, Timer->Start() % 100, Timer->Stop() / 100, Timer->Stop() % 100); + return *dateString; } int cNopacityTimerMenuItem::CheckScrollable(bool hasIcon) { |