feat: add mqtt.proxy_to_client_enabled config

This commit is contained in:
andrekir 2023-07-18 18:04:22 -03:00
parent fc17c59996
commit c7222bc8e9

View file

@ -121,6 +121,14 @@ fun MQTTConfigItemList(
onValueChanged = { mqttInput = mqttInput.copy { root = it } })
}
item {
SwitchPreference(title = "Proxy to client enabled",
checked = mqttInput.proxyToClientEnabled,
enabled = enabled,
onCheckedChange = { mqttInput = mqttInput.copy { proxyToClientEnabled = it } })
}
item { Divider() }
item {
PreferenceFooter(
enabled = mqttInput != mqttConfig,
@ -136,7 +144,7 @@ fun MQTTConfigItemList(
@Preview(showBackground = true)
@Composable
fun MQTTConfigPreview(){
fun MQTTConfigPreview() {
MQTTConfigItemList(
mqttConfig = MQTTConfig.getDefaultInstance(),
enabled = true,