mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 12:03:25 -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)
|
void VisualDatabaseDisplayColorFilterWidget::handleColorToggled(QChar color, bool active)
|
||||||
{
|
{
|
||||||
if (active) {
|
if (currentMode == FilterMode::Custom) {
|
||||||
addFilter(color);
|
for (ManaSymbolWidget *manaSymbolWidget : findChildren<ManaSymbolWidget *>()) {
|
||||||
|
manaSymbolWidget->setColorActive(false);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
removeFilter(color);
|
if (active) {
|
||||||
|
addFilter(color);
|
||||||
|
} else {
|
||||||
|
removeFilter(color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue