diff --git a/lan-mouse-cli/src/lib.rs b/lan-mouse-cli/src/lib.rs index c12db06..e7209c7 100644 --- a/lan-mouse-cli/src/lib.rs +++ b/lan-mouse-cli/src/lib.rs @@ -274,12 +274,15 @@ impl Cli { FrontendEvent::EmulationStatus(s) => { eprintln!("emulation status: {s:?}") } - FrontendEvent::AuthorizedUpdated(keys) => { + FrontendEvent::AuthorizedUpdated(fingerprints) => { eprintln!("authorized keys changed:"); - for key in keys { - eprintln!("{key}"); + for (desc, fp) in fingerprints { + eprintln!("{desc}: {fp}"); } } + FrontendEvent::PublicKeyFingerprint(fp) => { + eprintln!("the public key fingerprint of this device is {fp}"); + } } } diff --git a/lan-mouse-gtk/resources/fingerprint_window.ui b/lan-mouse-gtk/resources/fingerprint_window.ui index 3cbfb34..c8db837 100644 --- a/lan-mouse-gtk/resources/fingerprint_window.ui +++ b/lan-mouse-gtk/resources/fingerprint_window.ui @@ -6,7 +6,8 @@ True 880 880 - 240 + 340 + 340 Add Public Key Fingerprint @@ -21,13 +22,39 @@ vertical 18 + + + you can find the fingerprint of a device under the `General` section + + + description - fingerprint - + + 10 + 10 + 10 + 10 + True + True + True + 0 + + + + + + + + + sha256 fingerprint + + + + 10 10 10 diff --git a/lan-mouse-gtk/resources/key_row.ui b/lan-mouse-gtk/resources/key_row.ui index 07da85f..7931b62 100644 --- a/lan-mouse-gtk/resources/key_row.ui +++ b/lan-mouse-gtk/resources/key_row.ui @@ -1,7 +1,6 @@