Fix empty catalogue loaded state and compact Essence selection behavior

This commit is contained in:
Christian Daniel Jensen 2026-11-03 12:43:29 -07:00
parent 44a6f04dd5
commit 5657716d13

View file

@ -319,7 +319,11 @@ void CardDatabase::swapInDatabaseData(CardDatabaseData data)
sets = std::move(data.sets); sets = std::move(data.sets);
formats = std::move(data.formats); formats = std::move(data.formats);
loadStatus = cards.isEmpty() ? NotLoaded : Ok; // A successfully parsed card database may legitimately contain no cards.
// Continuumatrice starts with an intentionally empty catalogue, which is
// still LOADED. NotLoaded is reserved for before loading and clear().
// The UI uses this status to reveal its filters and empty results view.
loadStatus = Ok;
// inform listeners that the whole database was replaced; they should // inform listeners that the whole database was replaced; they should
// rebuild from the live containers in a single batch instead of reacting // rebuild from the live containers in a single batch instead of reacting