mirror of
https://github.com/AChep/keyguard-app.git
synced 2025-02-02 07:18:24 +01:00
fix: Correctly highlight the selected wordlist
This commit is contained in:
parent
cea3da4951
commit
6c5c54c830
@ -432,9 +432,11 @@ fun produceGeneratorState(
|
|||||||
quantity,
|
quantity,
|
||||||
numberFormatter.formatNumber(quantity),
|
numberFormatter.formatNumber(quantity),
|
||||||
)
|
)
|
||||||
|
val selected = wordlistId == null || wordlistId <= 0L
|
||||||
this += FlatItemAction(
|
this += FlatItemAction(
|
||||||
title = TextHolder.Value(defaultWordlistName),
|
title = TextHolder.Value(defaultWordlistName),
|
||||||
text = TextHolder.Value(text),
|
text = TextHolder.Value(text),
|
||||||
|
selected = selected,
|
||||||
onClick = onSelect
|
onClick = onSelect
|
||||||
.partially1(0),
|
.partially1(0),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user