startbutton blink fix
This commit is contained in:
@@ -573,10 +573,6 @@ void gameLobbyDialogImpl::checkPlayerQuantity() {
|
||||
|
||||
if (treeWidget_connectedPlayers->topLevelItemCount() >= 2) {
|
||||
pushButton_StartGame->setEnabled(true);
|
||||
}
|
||||
else {
|
||||
pushButton_StartGame->setEnabled(false);
|
||||
}
|
||||
|
||||
if(treeWidget_connectedPlayers->topLevelItemCount() == label_MaximumNumberOfPlayers->text().toInt()) {
|
||||
blinkingButtonAnimationTimer->start();
|
||||
@@ -587,6 +583,10 @@ void gameLobbyDialogImpl::checkPlayerQuantity() {
|
||||
blinkingStartButtonAnimation();
|
||||
}
|
||||
}
|
||||
else {
|
||||
pushButton_StartGame->setEnabled(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void gameLobbyDialogImpl::blinkingStartButtonAnimation() {
|
||||
|
||||
Reference in New Issue
Block a user