mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-10 10:11:29 +03:00
fix fingerprint add
This commit is contained in:
@@ -41,9 +41,9 @@ impl ObjectSubclass for FingerprintWindow {
|
|||||||
impl FingerprintWindow {
|
impl FingerprintWindow {
|
||||||
#[template_callback]
|
#[template_callback]
|
||||||
fn handle_confirm(&self, _button: Button) {
|
fn handle_confirm(&self, _button: Button) {
|
||||||
let desc = self.description.text().to_string();
|
let desc = self.description.text().as_str().trim().to_owned();
|
||||||
let fp = self.fingerprint.text().to_string();
|
let fp = self.fingerprint.text().as_str().trim().to_owned();
|
||||||
self.obj().emit_by_name("confirm-clicked", &[&fp, &desc])
|
self.obj().emit_by_name("confirm-clicked", &[&desc, &fp])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ impl LanMouseListener {
|
|||||||
.map(|c| crypto::generate_fingerprint(c))
|
.map(|c| crypto::generate_fingerprint(c))
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
log::info!("fingerprints: {fingerprints:?}");
|
log::info!("fingerprints: {fingerprints:?}");
|
||||||
|
log::info!("authorized: {:?}", authorized_keys.read().expect("lock"));
|
||||||
if authorized_keys
|
if authorized_keys
|
||||||
.read()
|
.read()
|
||||||
.expect("lock")
|
.expect("lock")
|
||||||
|
|||||||
Reference in New Issue
Block a user