Wizard: use first enum entry as default value for enumSetting

This commit is contained in:
Ilya Kirillov
2020-02-21 19:10:00 +03:00
parent 3967522c08
commit ad39d0520a
6 changed files with 25 additions and 16 deletions
@@ -64,10 +64,10 @@ class TargetsModel(
fun add(module: Module) {
uiEditorUsagesStats.modulesCreated++
addToTheTree(module, modifyValue = true, parent = tree.selectedNode ?: root)
with(readingContext) {
module.apply { initDefaultValuesForSettings() }
}
addToTheTree(module, modifyValue = true, parent = tree.selectedNode ?: root)
}
fun update() {