fix: restore burgs on load - add group order

This commit is contained in:
Azgaar 2025-04-29 21:11:46 +02:00
parent bc8ad03c0f
commit f51c45e17a

View file

@ -984,9 +984,9 @@ export function resolveVersionConflicts(mapVersion) {
options.burgs = {groups: []};
burgIcons.selectAll("g").each(function () {
burgIcons.selectAll("g").each(function (_el, index) {
const name = this.id;
options.burgs.groups.push({name, active: true, preview: "watabou-city"});
options.burgs.groups.push({name, active: true, order: index + 1, preview: "watabou-city"});
const size = Number(this.getAttribute("size") || 2) * 2;
this.removeAttribute("size");