Skip to content

Commit

Permalink
Fix nested settings missing label
Browse files Browse the repository at this point in the history
  • Loading branch information
sghpjuikit committed Jan 16, 2025
1 parent 0c9b4a4 commit d79e198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player/main/sp/it/pl/ui/pane/ConfigPane.kt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class ConfigPane<T: Any?>: VBox {
.associateBy { it.configEditor ?: it.parent?.configEditor!! }

fun ConfigEditor<*>.needsLabel() =
!(this is ConfigurableCE && config.hasConstraint<UiNested>())
this !is ConfigurableCE || config.hasConstraint<UiNested>()
fun ConfigEditor<*>.needsInfo() =
config.info.isNotEmpty() && config.nameUi!=config.info && needsLabel()
fun ConfigEditor<*>.isNested() =
Expand Down

0 comments on commit d79e198

Please sign in to comment.