Fix Schematic List

Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2025-11-25 18:12:30 +01:00
parent 395e4a2167
commit 500f8978e5
@@ -328,7 +328,7 @@ class SchematicNode(id: EntityID<Int>) : IntEntity(id) {
}
private var nodeType by SchematicNodeTable.type
var schemtype: SchematicType
get() = checkDir { SchematicType.fromDB(nodeType!!)!! }
get() = checkDir { SchematicType.fromDB(nodeType!!) ?: SchematicType.Normal }
set(value) = checkDir { useDb { nodeType = value.toDB() } }
var config by SchematicNodeTable.config