hopefully last blinking startbutton fix
This commit is contained in:
@@ -584,10 +584,10 @@ void gameLobbyDialogImpl::checkPlayerQuantity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
pushButton_StartGame->setEnabled(false);
|
||||||
blinkingButtonAnimationTimer->stop();
|
blinkingButtonAnimationTimer->stop();
|
||||||
blinkingButtonAnimationState = false;
|
blinkingButtonAnimationState = false;
|
||||||
blinkingStartButtonAnimation();
|
blinkingStartButtonAnimation();
|
||||||
pushButton_StartGame->setEnabled(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -607,6 +607,9 @@ void gameLobbyDialogImpl::blinkingStartButtonAnimation() {
|
|||||||
p.setColor(QPalette::ButtonText, defaultStartButtonTextColor);
|
p.setColor(QPalette::ButtonText, defaultStartButtonTextColor);
|
||||||
pushButton_StartGame->setPalette(p);
|
pushButton_StartGame->setPalette(p);
|
||||||
blinkingButtonAnimationState = true;
|
blinkingButtonAnimationState = true;
|
||||||
|
if(!pushButton_StartGame->isEnabled()) {
|
||||||
|
pushButton_StartGame->setEnabled(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user