mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CComponentsFrmClock: Fix thread handling
- Set clock activ = false for default
This commit is contained in:
@@ -76,11 +76,10 @@ void CComponentsFrmClock::initVarClock( const int& x_pos, const int& y_pos, cons
|
||||
cl_thread = 0;
|
||||
cl_interval = 1;
|
||||
|
||||
activeClock = true;
|
||||
cl_blink_str = "";
|
||||
paintClock = false;
|
||||
|
||||
activeClock = activ;
|
||||
activeClock = activ;
|
||||
if (activeClock)
|
||||
startThread();
|
||||
}
|
||||
@@ -373,3 +372,12 @@ Font** CComponentsFrmClock::getClockFont()
|
||||
return cl_font;
|
||||
|
||||
}
|
||||
|
||||
void CComponentsFrmClock::setClockActiv(bool activ/* = true*/)
|
||||
{
|
||||
activeClock = activ;
|
||||
if (activ && !cl_thread)
|
||||
startThread();
|
||||
if (!activ && cl_thread)
|
||||
stopThread();
|
||||
}
|
||||
|
Reference in New Issue
Block a user