Remove English search mode

This commit is contained in:
Marvin Elsen 2024-10-07 23:00:04 +02:00
parent 7dab46364e
commit eb3beb0dfe
Signed by: marvinelsen
GPG Key ID: 820672408CC318C2
3 changed files with 1 additions and 9 deletions

View File

@ -1,5 +1,5 @@
package com.marvinelsen.willow.domain
enum class SearchMode {
PINYIN, SIMPLIFIED, TRADITIONAL, ENGLISH, SEGMENTS
PINYIN, SIMPLIFIED, TRADITIONAL, SEGMENTS
}

View File

@ -90,7 +90,6 @@ class SqliteDictionary(private val connection: Connection) : Dictionary {
SearchMode.SIMPLIFIED -> searchSimplified(query)
SearchMode.TRADITIONAL -> searchTraditional(query)
SearchMode.SEGMENTS -> searchSegments(query)
SearchMode.ENGLISH -> TODO()
}
override fun findWordsContaining(entry: DictionaryEntry): List<DictionaryEntry> {

View File

@ -36,12 +36,5 @@
<SearchMode fx:value="SEGMENTS"/>
</userData>
</RadioButton>
<RadioButton mnemonicParsing="false" text="%search.mode.english"
toggleGroup="$searchModeToggleGroup"
disable="true">
<userData>
<SearchMode fx:value="ENGLISH"/>
</userData>
</RadioButton>
</FlowPane>
</VBox>