fix: Correctly highlight the selected wordlist

This commit is contained in:
Artem Chepurnoy 2024-11-30 12:24:39 +02:00
parent cea3da4951
commit 6c5c54c830
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E

View File

@ -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),
)