mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 17:15:09 -07:00
DeckListModel now surfaces the custom zones from the deck tree so views can render and edit them alongside criteria groups. - rebuildTree mirrors each custom zone as a DecklistModelSubZoneNode under its board zone, cards flat inside (no further grouping). - The freshly built shadow tree is sorted while the model reset is still open, so views never observe unsorted intermediate order and proxies cannot desync. - Custom zones always sort after criteria groups within a board, regardless of their names. sortHelper remaps persistent indexes through the pre-shift rows to keep selections valid. - addCard inserts flat into a custom zone by name and keeps grouping by active criteria for board zones. findCardNode resolves cards in both layouts, legacy top-level zones unchanged. - New IsCustomZoneRole lets views tell zones apart from groups. - Empty custom zones survive row removal. Zone rows themselves are only mutable through the deck tree API. Took 5 minutes Took 20 minutes |
||
|---|---|---|
| .. | ||
| libcockatrice/models | ||
| CMakeLists.txt | ||