mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 05:20:00 -08:00
Fix empty catalogue loaded state and compact Essence selection behavior
This commit is contained in:
parent
44a6f04dd5
commit
5657716d13
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue