mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
Don't allow toggling mana symbols in custom mode
This commit is contained in:
parent
bf7c6f9313
commit
7c065ebae9
1 changed files with 9 additions and 3 deletions
|
|
@ -161,10 +161,16 @@ void VisualDatabaseDisplayColorFilterWidget::addCustomFilterModeItem()
|
|||
|
||||
void VisualDatabaseDisplayColorFilterWidget::handleColorToggled(QChar color, bool active)
|
||||
{
|
||||
if (active) {
|
||||
addFilter(color);
|
||||
if (currentMode == FilterMode::Custom) {
|
||||
for (ManaSymbolWidget *manaSymbolWidget : findChildren<ManaSymbolWidget *>()) {
|
||||
manaSymbolWidget->setColorActive(false);
|
||||
}
|
||||
} else {
|
||||
removeFilter(color);
|
||||
if (active) {
|
||||
addFilter(color);
|
||||
} else {
|
||||
removeFilter(color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue