diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-07-13 01:00:17 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-07-13 01:00:17 +0200 |
commit | ba5c00b6992d28cfb6afc7fab108c9009f9e1b7c (patch) | |
tree | 98ee8e38451f182c105a94b181cedec448bb03d6 /src/main | |
parent | a804e0aa277efc1b46c1111b0ad8302d267684b2 (diff) | |
download | kvision-ba5c00b6992d28cfb6afc7fab108c9009f9e1b7c.tar.gz kvision-ba5c00b6992d28cfb6afc7fab108c9009f9e1b7c.tar.bz2 kvision-ba5c00b6992d28cfb6afc7fab108c9009f9e1b7c.zip |
Suppress style warnings.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/utils/ObservableList.kt | 1 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/window/Window.kt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/utils/ObservableList.kt b/src/main/kotlin/pl/treksoft/kvision/utils/ObservableList.kt index 193cd575..bfd018e0 100644 --- a/src/main/kotlin/pl/treksoft/kvision/utils/ObservableList.kt +++ b/src/main/kotlin/pl/treksoft/kvision/utils/ObservableList.kt @@ -32,6 +32,7 @@ interface ObservableList<T> : MutableList<T> { /** * Simple observable list implementation. */ +@Suppress("TooManyFunctions") class ObservableListWrapper<T>(val mutableList: MutableList<T> = mutableListOf()) : MutableList<T>, ObservableList<T> { override val onUpdate: MutableCollection<(MutableList<T>) -> Unit> = mutableListOf() diff --git a/src/main/kotlin/pl/treksoft/kvision/window/Window.kt b/src/main/kotlin/pl/treksoft/kvision/window/Window.kt index 7dfeb921..3816de3a 100644 --- a/src/main/kotlin/pl/treksoft/kvision/window/Window.kt +++ b/src/main/kotlin/pl/treksoft/kvision/window/Window.kt @@ -247,6 +247,7 @@ open class Window( } private fun checkHeaderVisibility() { + @Suppress("ComplexCondition") if (!closeButton && !maximizeButton && !minimizeButton && caption == null && !isDraggable) { header.hide() } else { |