diff --git a/CHANGELOG.md b/CHANGELOG.md index abc2812..35e370a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,9 @@ Released on FIXME: +- Bugfix: + - [Issue 10](https://github.com/veeso/termscp/issues/10): Fixed port not being loaded from bookmarks into gui + ## 0.4.0 Released on 27/03/2021 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) {