Add setting to auto close card view when empty (#5502)

This commit is contained in:
RickyRister 2025-01-20 19:08:01 -08:00 committed by GitHub
parent aeb1b9fb4f
commit 97fdf11c8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 34 additions and 2 deletions

View file

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