- bugfixes
This commit is contained in:
parent
92fae09672
commit
7e91a89caf
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Reference in a new issue