Fixed port not being loaded from bookmarks into gui

This commit is contained in:
veeso
2021-03-29 21:14:35 +02:00
parent bd00ba7971
commit 7acf119c77

View File

@@ -251,7 +251,7 @@ impl AuthActivity {
self.view.update(super::COMPONENT_INPUT_ADDR, props); self.view.update(super::COMPONENT_INPUT_ADDR, props);
} }
if let Some(mut props) = self.view.get_props(super::COMPONENT_INPUT_PORT) { if let Some(mut props) = self.view.get_props(super::COMPONENT_INPUT_PORT) {
let props = props.with_value(PropValue::Unsigned(port as usize)).build(); let props = props.with_value(PropValue::Str(port.to_string())).build();
self.view.update(super::COMPONENT_INPUT_PORT, props); self.view.update(super::COMPONENT_INPUT_PORT, props);
} }
if let Some(mut props) = self.view.get_props(super::COMPONENT_RADIO_PROTOCOL) { if let Some(mut props) = self.view.get_props(super::COMPONENT_RADIO_PROTOCOL) {