Merge pull request #11 from veeso/issue-10-port-number-isnt-correctly-retrieved-from-the-bookmarks.toml

Issue 10 port number isnt correctly retrieved from the bookmarks.toml
This commit is contained in:
Christian Visintin
2021-04-01 22:06:22 +02:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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) {