mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
-fix menu show min in shutdown timer
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1205 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -60,7 +60,7 @@ int CSleepTimerWidget::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
parent->hide();
|
||||
|
||||
if(permanent) {
|
||||
sprintf(value,"%03d", g_settings.shutdown_min);
|
||||
strcpy(value,g_settings.shutdown_min);
|
||||
} else {
|
||||
shutdown_min = g_Timerd->getSleepTimerRemaining(); // remaining shutdown time?
|
||||
sprintf(value,"%03d", shutdown_min);
|
||||
@@ -93,8 +93,8 @@ int CSleepTimerWidget::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
|
||||
int new_val = atoi(value);
|
||||
if(permanent) {
|
||||
g_settings.shutdown_min = new_val;
|
||||
printf("permanent sleeptimer min: %d\n", g_settings.shutdown_min);
|
||||
sprintf(g_settings.shutdown_min,"%03d", new_val);
|
||||
printf("permanent sleeptimer min: %s\n", g_settings.shutdown_min);
|
||||
}
|
||||
else if(shutdown_min != new_val) {
|
||||
shutdown_min = new_val;
|
||||
|
Reference in New Issue
Block a user