Fix detekt issues
All checks were successful
Pull Request / build (pull_request) Successful in 3m26s
All checks were successful
Pull Request / build (pull_request) Successful in 3m26s
This commit is contained in:
parent
630d464916
commit
46af4db9f1
@ -24,6 +24,7 @@ import kotlinx.html.ol
|
|||||||
import kotlinx.html.stream.createHTML
|
import kotlinx.html.stream.createHTML
|
||||||
import java.util.ResourceBundle
|
import java.util.ResourceBundle
|
||||||
|
|
||||||
|
@Suppress("UnusedPrivateMember")
|
||||||
class DetailsController(private val model: Model, private val config: Config) {
|
class DetailsController(private val model: Model, private val config: Config) {
|
||||||
@FXML
|
@FXML
|
||||||
private lateinit var resources: ResourceBundle
|
private lateinit var resources: ResourceBundle
|
||||||
@ -61,7 +62,6 @@ class DetailsController(private val model: Model, private val config: Config) {
|
|||||||
@FXML
|
@FXML
|
||||||
private lateinit var labelNoWordsFound: Label
|
private lateinit var labelNoWordsFound: Label
|
||||||
|
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private fun initialize() {
|
private fun initialize() {
|
||||||
initializeLabelHeadword()
|
initializeLabelHeadword()
|
||||||
@ -104,9 +104,20 @@ class DetailsController(private val model: Model, private val config: Config) {
|
|||||||
{
|
{
|
||||||
val selectedEntry = model.selectedEntry.value
|
val selectedEntry = model.selectedEntry.value
|
||||||
when (config.details.pronunciation.value!!) {
|
when (config.details.pronunciation.value!!) {
|
||||||
Pronunciation.PINYIN_WITH_TONE_MARKS -> selectedEntry?.pinyinWithToneMarksProperty?.value
|
Pronunciation.PINYIN_WITH_TONE_MARKS ->
|
||||||
Pronunciation.PINYIN_WITH_TONE_NUMBERS -> selectedEntry?.pinyinWithToneNumbersProperty?.value
|
selectedEntry
|
||||||
Pronunciation.ZHUYIN -> selectedEntry?.zhuyinProperty?.value
|
?.pinyinWithToneMarksProperty
|
||||||
|
?.value
|
||||||
|
|
||||||
|
Pronunciation.PINYIN_WITH_TONE_NUMBERS ->
|
||||||
|
selectedEntry
|
||||||
|
?.pinyinWithToneNumbersProperty
|
||||||
|
?.value
|
||||||
|
|
||||||
|
Pronunciation.ZHUYIN ->
|
||||||
|
selectedEntry
|
||||||
|
?.zhuyinProperty
|
||||||
|
?.value
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
config.details.pronunciation,
|
config.details.pronunciation,
|
||||||
|
Loading…
Reference in New Issue
Block a user