gui preparation for allow spectators flag #215
This commit is contained in:
@@ -164,6 +164,8 @@ void createInternetGameDialogImpl::gameTypeChanged()
|
||||
radioButton_changeBlindsSettings->show();
|
||||
startBlind->hide();
|
||||
raiseMode->hide();
|
||||
checkBox_allowSpectators->setEnabled(true);
|
||||
checkBox_allowSpectators->setChecked(myConfig->readConfigInt("InternetGameAllowSpectators"));
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -177,6 +179,8 @@ void createInternetGameDialogImpl::gameTypeChanged()
|
||||
radioButton_changeBlindsSettings->show();
|
||||
startBlind->hide();
|
||||
raiseMode->hide();
|
||||
checkBox_allowSpectators->setEnabled(true);
|
||||
checkBox_allowSpectators->setChecked(myConfig->readConfigInt("InternetGameAllowSpectators"));
|
||||
}
|
||||
break;
|
||||
case GAME_TYPE_INVITE_ONLY-1: {
|
||||
@@ -190,7 +194,8 @@ void createInternetGameDialogImpl::gameTypeChanged()
|
||||
radioButton_changeBlindsSettings->show();
|
||||
startBlind->hide();
|
||||
raiseMode->hide();
|
||||
|
||||
checkBox_allowSpectators->setEnabled(true);
|
||||
checkBox_allowSpectators->setChecked(myConfig->readConfigInt("InternetGameAllowSpectators"));
|
||||
}
|
||||
break;
|
||||
case GAME_TYPE_RANKING-1: {
|
||||
@@ -205,7 +210,8 @@ void createInternetGameDialogImpl::gameTypeChanged()
|
||||
radioButton_changeBlindsSettings->hide();
|
||||
startBlind->show();
|
||||
raiseMode->show();
|
||||
|
||||
checkBox_allowSpectators->setDisabled(true);
|
||||
checkBox_allowSpectators->setChecked(true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user