close card view window on empty

This commit is contained in:
RickyRister 2025-01-19 17:02:02 -08:00
parent 81b79c4b0f
commit e37df68f30

View file

@ -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();
}