Honor the configured description for a port, if any
Get rid of that dumb warning, can't believe I forgot to wire this for so long.
This commit is contained in:
parent
2a582e25a8
commit
e1768a0433
1 changed files with 3 additions and 1 deletions
|
|
@ -571,7 +571,7 @@ impl UI {
|
|||
// Grab the selected port
|
||||
let selected_port = self.get_selected_port();
|
||||
|
||||
for port_desc in p.into_iter() {
|
||||
for mut port_desc in p.into_iter() {
|
||||
leftover_ports.remove(&port_desc.port);
|
||||
if let Some(listener) = self.ports.get_mut(&port_desc.port)
|
||||
{
|
||||
|
|
@ -579,6 +579,8 @@ impl UI {
|
|||
} else {
|
||||
let config = self.config.get(port_desc.port);
|
||||
info!("Port config {port_desc:?} -> {config:?}");
|
||||
port_desc.desc =
|
||||
config.description.unwrap_or(port_desc.desc);
|
||||
|
||||
self.ports.insert(
|
||||
port_desc.port,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue