mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 23:42:15 -07:00
Don't support colors on face-down tokens
The other client doesn't know about the color, so it causes a desync
This commit is contained in:
parent
2a3eab2aa9
commit
89b60151f3
2 changed files with 5 additions and 2 deletions
|
|
@ -162,6 +162,8 @@ void DlgCreateToken::closeEvent(QCloseEvent *event)
|
|||
void DlgCreateToken::faceDownCheckBoxToggled(bool checked)
|
||||
{
|
||||
if (checked) {
|
||||
colorEdit->setCurrentIndex(6);
|
||||
colorEdit->setEnabled(false);
|
||||
ptEdit->clear();
|
||||
ptEdit->clearFocus();
|
||||
ptEdit->setEnabled(false);
|
||||
|
|
@ -169,6 +171,7 @@ void DlgCreateToken::faceDownCheckBoxToggled(bool checked)
|
|||
annotationEdit->clearFocus();
|
||||
annotationEdit->setEnabled(false);
|
||||
} else {
|
||||
colorEdit->setEnabled(true);
|
||||
ptEdit->setEnabled(true);
|
||||
annotationEdit->setEnabled(true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue