mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 00:23:55 -07:00
Fix command zone menu showing Minimize even when zone is already minimized
This commit is contained in:
parent
2ad18e2d8b
commit
57fc10dc02
1 changed files with 5 additions and 0 deletions
|
|
@ -142,6 +142,11 @@ void CommandZoneMenu::updateTaxCounterActionStates()
|
|||
aTogglePartnerTaxCounter->setText(partnerTax ? tr("R&emove Partner Tax") : tr("&Add Partner Tax"));
|
||||
aTogglePartnerTaxCounter->setVisible(!partnerTax || partnerTax->getValue() == 0);
|
||||
}
|
||||
|
||||
if (aToggleMinimized) {
|
||||
CommandZone *zone = player->getCommandZoneGraphicsItem();
|
||||
aToggleMinimized->setText(zone && zone->isMinimized() ? tr("&Restore") : tr("&Minimize"));
|
||||
}
|
||||
}
|
||||
|
||||
void CommandZoneMenu::setShortcutsActive()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue