mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
close card view window on empty
This commit is contained in:
parent
81b79c4b0f
commit
e37df68f30
1 changed files with 6 additions and 0 deletions
|
|
@ -342,6 +342,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