Fix some detekt issues
Some checks failed
Pull Request / build (pull_request) Failing after 2m46s

This commit is contained in:
Marvin Elsen 2024-10-10 22:38:58 +02:00
parent eebf3864a9
commit af3a291536
Signed by: marvinelsen
GPG Key ID: 820672408CC318C2
2 changed files with 8 additions and 4 deletions

View File

@ -115,8 +115,12 @@ internal class EntryCell(private val resources: ResourceBundle, private val conf
separator = " / "
) { it.joinToString(separator = "; ") }
entry.crossStraitsDefinitions.isNotEmpty() -> entry.crossStraitsDefinitions.joinToString(separator = " / ") { it.definition }
entry.moedictDefinitions.isNotEmpty() -> entry.moedictDefinitions.joinToString(separator = " / ") { it.definition }
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

View File

@ -37,8 +37,8 @@ class PreferencesDialog(
}
val root = fxmlLoader.load(javaClass.getResourceAsStream("/fxml/dialogs/preferences.fxml")) as DialogPane
root.prefHeightProperty().bind(dialogPane.scene.heightProperty());
root.prefWidthProperty().bind(dialogPane.scene.widthProperty());
root.prefHeightProperty().bind(dialogPane.scene.heightProperty())
root.prefWidthProperty().bind(dialogPane.scene.widthProperty())
dialogPane = root
title = "Settings"