From 7acf119c77e1619b4cd383ec8a4d8ca0c4eae5a5 Mon Sep 17 00:00:00 2001 From: veeso Date: Mon, 29 Mar 2021 21:14:35 +0200 Subject: [PATCH] Fixed port not being loaded from bookmarks into gui --- src/ui/activities/auth_activity/bookmarks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/activities/auth_activity/bookmarks.rs b/src/ui/activities/auth_activity/bookmarks.rs index c0ed27c..6e131d7 100644 --- a/src/ui/activities/auth_activity/bookmarks.rs +++ b/src/ui/activities/auth_activity/bookmarks.rs @@ -251,7 +251,7 @@ impl AuthActivity { self.view.update(super::COMPONENT_INPUT_ADDR, props); } 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); } if let Some(mut props) = self.view.get_props(super::COMPONENT_RADIO_PROTOCOL) {