[escher] Fix bug: do not redraw window at each timer fire but only for

timer requiring redraw

Change-Id: Ia39a35185a4836809970f5ba77cc76a8b2e6ee26
This commit is contained in:
Émilie Feral
2017-05-23 11:09:12 +02:00
parent f9a1caa8eb
commit c644a8d4f7
23 changed files with 35 additions and 52 deletions

View File

@@ -6,8 +6,9 @@ LedTimer::LedTimer() :
{
}
void LedTimer::fire() {
bool LedTimer::fire() {
m_on = !m_on;
KDColor ledColor = m_on ? KDColorRed : KDColorBlack;
Ion::LED::setColor(ledColor);
return false;
}