fix fingerprint add

This commit is contained in:
Ferdinand Schober
2024-09-27 18:21:59 +02:00
parent c75a085e78
commit 2ed3624505
2 changed files with 4 additions and 3 deletions

View File

@@ -41,9 +41,9 @@ impl ObjectSubclass for FingerprintWindow {
impl FingerprintWindow {
#[template_callback]
fn handle_confirm(&self, _button: Button) {
let desc = self.description.text().to_string();
let fp = self.fingerprint.text().to_string();
self.obj().emit_by_name("confirm-clicked", &[&fp, &desc])
let desc = self.description.text().as_str().trim().to_owned();
let fp = self.fingerprint.text().as_str().trim().to_owned();
self.obj().emit_by_name("confirm-clicked", &[&desc, &fp])
}
}

View File

@@ -62,6 +62,7 @@ impl LanMouseListener {
.map(|c| crypto::generate_fingerprint(c))
.collect::<Vec<_>>();
log::info!("fingerprints: {fingerprints:?}");
log::info!("authorized: {:?}", authorized_keys.read().expect("lock"));
if authorized_keys
.read()
.expect("lock")