mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Fixed / Improved timer handling in timer based component
This commit is contained in:
@@ -46,6 +46,7 @@ namespace BlackGui
|
||||
void CTimerBasedComponent::fireTimer()
|
||||
{
|
||||
Q_ASSERT(this->m_timerSingleShot);
|
||||
this->m_timer->start(); // restart other timer
|
||||
this->m_timerSingleShot->start(10);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace BlackGui
|
||||
void setUpdateIntervalSeconds(int seconds) { this->setUpdateInterval(1000 * seconds); }
|
||||
|
||||
//! Stop timer
|
||||
void stopTimer() { this->setUpdateInterval(-1); }
|
||||
void stopTimer() { this->setUpdateInterval(-1); this->m_timerSingleShot->stop(); }
|
||||
|
||||
//! Fire the timer straight away
|
||||
void fireTimer();
|
||||
|
||||
Reference in New Issue
Block a user