diff --git a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/generator/GeneratorStateProducer.kt b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/generator/GeneratorStateProducer.kt index d31c7af1..8a6c1597 100644 --- a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/generator/GeneratorStateProducer.kt +++ b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/generator/GeneratorStateProducer.kt @@ -432,9 +432,11 @@ fun produceGeneratorState( quantity, numberFormatter.formatNumber(quantity), ) + val selected = wordlistId == null || wordlistId <= 0L this += FlatItemAction( title = TextHolder.Value(defaultWordlistName), text = TextHolder.Value(text), + selected = selected, onClick = onSelect .partially1(0), )