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