mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CComponentsFrmClock: Move thread start/stop to constructor/destructor
This commit is contained in:
@@ -560,11 +560,11 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
// clock_r->doPaintBg(false);
|
||||
}
|
||||
|
||||
if (!clock_r->isClockRun()){
|
||||
if (!clock_r->isPainted()){
|
||||
if (clock_r->Start())
|
||||
return menu_return::RETURN_EXIT_ALL;;
|
||||
}
|
||||
else if (clock_r->isClockRun()){
|
||||
else {
|
||||
if (clock_r->Stop()){
|
||||
clock_r->hide();
|
||||
delete clock_r;
|
||||
@@ -575,7 +575,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
}
|
||||
else if (actionKey == "clock"){
|
||||
if (clock == NULL){
|
||||
clock = new CComponentsFrmClock(100, 50, 0, 50, "%H:%M");
|
||||
clock = new CComponentsFrmClock(100, 50, 0, 50, "%H:%M", false);
|
||||
clock->setClockFontType(SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user