- bugfixes

This commit is contained in:
Dorian Zedler 2020-12-28 16:17:38 +01:00
parent 92fae09672
commit 7e91a89caf
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37
2 changed files with 8 additions and 2 deletions

View file

@ -269,6 +269,7 @@ bool ScStwRace::playSoundsAndStartTimers() {
} }
else { else {
this->startDelayTimer->stop(); this->startDelayTimer->stop();
this->startDelayTimer->setInterval(minimumReadyDelay);
this->startDelayTimer->start(); this->startDelayTimer->start();
timerTriggered = true; timerTriggered = true;
} }

View file

@ -280,11 +280,16 @@ QString ScStwTimer::getText() {
} }
void ScStwTimer::setDisabled(bool disabled) { void ScStwTimer::setDisabled(bool disabled) {
if(this->isDisabled() == disabled)
return;
if(disabled) if(disabled)
this->setState(DISABLED); this->setState(DISABLED);
else { else
this->setState(IDLE); this->setState(IDLE);
}
emit this->readyStateChanged(this->getReadyState());
} }
void ScStwTimer::setWantsToBeDisabled(bool wantsToBeDisabled) { void ScStwTimer::setWantsToBeDisabled(bool wantsToBeDisabled) {