Changeset 22728 for titan/plugins/autotimer/autotimer.c
- Timestamp:
- 08/08/13 15:36:06 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/autotimer/autotimer.c
r21930 r22728 180 180 node->repeate = 0; 181 181 node->justplay = getconfigint("at1_event", NULL); 182 node->afterevent = 0;182 node->afterevent = getconfigint("at1_afterevent", NULL); 183 183 node->serviceid = channel1->serviceid; 184 184 node->servicetype = channel1->servicetype; … … 276 276 struct skin* autotimer_begin = getscreennode(autotimer, "begin"); 277 277 struct skin* autotimer_event = getscreennode(autotimer, "event"); 278 struct skin* autotimer_afterevent = getscreennode(autotimer, "afterevent"); 278 279 struct skin* autotimer_end = getscreennode(autotimer, "end"); 279 280 struct skin* autotimer_blue = getscreennode(autotimer, "blue"); … … 308 309 addchoicebox(autotimer_event, "1", _("switch channel")); 309 310 setchoiceboxselection(autotimer_event, getconfig("at1_event", NULL)); 311 312 addchoicebox(autotimer_afterevent, "0", _("auto")); 313 addchoicebox(autotimer_afterevent, "1", _("nothing")); 314 addchoicebox(autotimer_afterevent, "2", _("standby")); 315 addchoicebox(autotimer_afterevent, "3", _("power off")); 316 setchoiceboxselection(autotimer_afterevent, getconfig("at1_afterevent", NULL)); 310 317 311 318 drawscreen(autotimer, 0, 0); … … 345 352 addconfig("at1_endtime", autotimer_end->ret); 346 353 addconfig("at1_event", autotimer_event->ret); 354 addconfig("at1_afterevent", autotimer_afterevent->ret); 347 355 autotimerthread = addtimer(&autotimer_thread, START, 10000, 1, NULL, NULL, NULL); 348 356 sleep(1); … … 367 375 addconfig("at1_endtime", autotimer_end->ret); 368 376 addconfig("at1_event", autotimer_event->ret); 377 addconfig("at1_afterevent", autotimer_afterevent->ret); 369 378 if(getconfigint("at1_running", NULL) == 1) 370 379 {
Note: See TracChangeset
for help on using the changeset viewer.