mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-10 12:51:28 +03:00
port changing functionality (#34)
* port changing functionality * add portchange to cli frontend
This commit is contained in:
committed by
GitHub
parent
60a73b3cb0
commit
e88241e816
@@ -145,6 +145,13 @@ fn build_ui(app: &Application) {
|
||||
);
|
||||
}
|
||||
},
|
||||
FrontendNotify::NotifyPortChange(port, msg) => {
|
||||
match msg {
|
||||
None => window.show_toast(format!("port changed: {port}").as_str()),
|
||||
Some(msg) => window.show_toast(msg.as_str()),
|
||||
}
|
||||
window.imp().set_port(port);
|
||||
}
|
||||
}
|
||||
glib::ControlFlow::Continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user