mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
fix fingerprint add
This commit is contained in:
@@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user