From d79e1981849ba7e0096769b46391d947f352e9c9 Mon Sep 17 00:00:00 2001 From: sghpjuikit Date: Thu, 16 Jan 2025 04:09:24 +0000 Subject: [PATCH] Fix nested settings missing label --- src/player/main/sp/it/pl/ui/pane/ConfigPane.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player/main/sp/it/pl/ui/pane/ConfigPane.kt b/src/player/main/sp/it/pl/ui/pane/ConfigPane.kt index 7d672c3f7..f6e6fe8e4 100644 --- a/src/player/main/sp/it/pl/ui/pane/ConfigPane.kt +++ b/src/player/main/sp/it/pl/ui/pane/ConfigPane.kt @@ -129,7 +129,7 @@ class ConfigPane: VBox { .associateBy { it.configEditor ?: it.parent?.configEditor!! } fun ConfigEditor<*>.needsLabel() = - !(this is ConfigurableCE && config.hasConstraint()) + this !is ConfigurableCE || config.hasConstraint() fun ConfigEditor<*>.needsInfo() = config.info.isNotEmpty() && config.nameUi!=config.info && needsLabel() fun ConfigEditor<*>.isNested() =