I have a DecoratedWindow, leveraging jewel. But, the behavior is the same with Window.
<code>class DecoratedWindowImpl : DecoratedWindowInterface {
@Composable
override fun Create(
state: WindowState,
enabled: Boolean,
onCloseRequest: () -> Unit,
content: @Composable DecoratedWindowScope.() -> Unit,
) {
DecoratedWindow(
state = state,
enabled = enabled,
onCloseRequest = onCloseRequest,
) {
content()
}
}
}
</code>
<code>class DecoratedWindowImpl : DecoratedWindowInterface {
@Composable
override fun Create(
state: WindowState,
enabled: Boolean,
onCloseRequest: () -> Unit,
content: @Composable DecoratedWindowScope.() -> Unit,
) {
DecoratedWindow(
state = state,
enabled = enabled,
onCloseRequest = onCloseRequest,
) {
content()
}
}
}
</code>
class DecoratedWindowImpl : DecoratedWindowInterface {
@Composable
override fun Create(
state: WindowState,
enabled: Boolean,
onCloseRequest: () -> Unit,
content: @Composable DecoratedWindowScope.() -> Unit,
) {
DecoratedWindow(
state = state,
enabled = enabled,
onCloseRequest = onCloseRequest,
) {
content()
}
}
}
If I trigger re-composition up stream but passing in a new enabled parameter (I can debug and see the new enabled param change in here), but the window remains enabled. I have also tried window.isEnabled = enabled
and the result is the same. If I start the window as disabled then it works, that is the window is disabled. Is this expected behavior?