mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add mqtt.proxy_to_client_enabled config
This commit is contained in:
parent
fc17c59996
commit
c7222bc8e9
1 changed files with 9 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue