New Features #1

Open
marvinelsen wants to merge 76 commits from develop into main
Showing only changes of commit 33402c0fcb - Show all commits

View File

@ -110,9 +110,15 @@ internal class EntryCell(private val resources: ResourceBundle, private val conf
) )
) )
val definition = entry.cedictDefinitions.joinToString( val definition = when {
entry.cedictDefinitions.isNotEmpty() -> entry.cedictDefinitions.joinToString(
separator = " / " separator = " / "
) { it.joinToString(separator = "; ") } ) { it.joinToString(separator = "; ") }
entry.crossStraitsDefinitions.isNotEmpty() -> entry.crossStraitsDefinitions.joinToString(separator = " / ") { it.definition }
entry.moedictDefinitions.isNotEmpty() -> entry.moedictDefinitions.joinToString(separator = " / ") { it.definition }
else -> error("No definition for entry")
}
labelDefinition.text = definition labelDefinition.text = definition
contextMenu = createContextMenuForEntry(entry, resources) contextMenu = createContextMenuForEntry(entry, resources)