aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/utils/ObservableList.kt1
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/window/Window.kt1
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 {