Commit ec8ea7fb authored by Dorian Zedler's avatar Dorian Zedler

next start action now ranges from 0 to 3 instead of -1 to 2

parent 66f240a4
......@@ -863,24 +863,17 @@ void MainActivity::handleUpdate(signalKey updateKey, SocketServer::socketClient
}
case NextStartActionChanged:
{
int nextAction = -1;
int nextActionDelay = 0;
if(this->nextAction == AtYourMarks){
nextAction = 0;
nextActionDelay = appSettings->loadSetting("at_marks_delay").toInt();
}
else if (this->nextAction == Ready) {
nextAction = 1;
nextActionDelay = appSettings->loadSetting("ready_delay").toInt();
}
else if (this->nextAction == Start) {
nextAction = 2;
}
updateData = QJsonObject::fromVariantMap(QVariantMap({{"nextAction", nextAction}, {"nextActionDelay", nextActionDelay}, {"nextActionDelayProg", 0}}));
updateData = QJsonObject::fromVariantMap(QVariantMap({{"nextAction", this->nextAction}, {"nextActionDelay", nextActionDelay}, {"nextActionDelayProg", 0}}));
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment