Fix compile error on iOS

Use kotlin native getOrPut instead of Java/Android specific putIfAbsent
This commit is contained in:
Olof Hedman
2025-10-19 13:37:13 +02:00
parent 0f6d50a187
commit c8a630e87f

View File

@@ -338,9 +338,9 @@ fun KlottrAppShell(
for (l in layers) {
if (l.slug !in known) {
// om inte redan satta: default av = false, default radius = grMin
dynamicVisible.putIfAbsent(l.slug, false)
dynamicVisible.getOrPut(l.slug) { false }
layerRanges[l.slug]?.first?.let { defMin ->
dynamicRadius.putIfAbsent(l.slug, defMin)
dynamicRadius.getOrPut(l.slug) { defMin }
}
}
}