mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
Add setting to auto close card view when empty (#5502)
This commit is contained in:
parent
aeb1b9fb4f
commit
97fdf11c8f
7 changed files with 34 additions and 2 deletions
|
|
@ -348,6 +348,12 @@ void ZoneViewZone::removeCard(int position)
|
|||
|
||||
CardItem *card = cards.takeAt(position);
|
||||
card->deleteLater();
|
||||
|
||||
if (cards.isEmpty() && SettingsCache::instance().getCloseEmptyCardView()) {
|
||||
deleteLater();
|
||||
return;
|
||||
}
|
||||
|
||||
updateCardIds(REMOVE_CARD);
|
||||
reorganizeCards();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue