mirror of
https://github.com/InsanusMokrassar/KotlinPublicationScriptsBuilder.git
synced 2025-09-04 15:39:17 +00:00
updates
This commit is contained in:
@@ -48,7 +48,7 @@ class LicensesView(
|
||||
emptyList()
|
||||
} else {
|
||||
licensesTemplates.filter {
|
||||
val lowercasedTitle = it.title.toLowerCase()
|
||||
val lowercasedTitle = it.title.lowercase()
|
||||
lowercased.all { it in lowercasedTitle }
|
||||
}
|
||||
}
|
||||
@@ -57,12 +57,12 @@ class LicensesView(
|
||||
}
|
||||
private val searchElement = rootElement.createTextField("Quick add", "Type some license name part to find it").apply {
|
||||
oninput = {
|
||||
changeActor.offer(Unit)
|
||||
changeActor.trySend(Unit)
|
||||
false
|
||||
}
|
||||
}
|
||||
private var searchString: String
|
||||
get() = searchElement.value.toLowerCase()
|
||||
get() = searchElement.value.lowercase()
|
||||
set(value) {
|
||||
searchElement.value = value
|
||||
}
|
||||
@@ -71,7 +71,7 @@ class LicensesView(
|
||||
createCommonButton(value.title).onclick = {
|
||||
searchString = ""
|
||||
licensesView.licenses += value
|
||||
changeActor.offer(Unit)
|
||||
changeActor.trySend(Unit)
|
||||
false
|
||||
}
|
||||
}
|
||||
@@ -110,4 +110,4 @@ class LicensesView(
|
||||
titleElement.value = to.title
|
||||
urlElement.value = to.url ?: ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user