diff --git a/CHANGELOG.md b/CHANGELOG.md index de08bb0..76a4c43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ +### 1.0.3: + Fixes a bug in Verify option ### 1.0.2: - - Fixes Verify being active for unenrolled fingers - - Add cargo-source.json for Flathub + • Fixes Verify being active for unenrolled fingers + • Add cargo-source.json for Flathub ### 1.0.1: - - Changed navigation bar default toggle state - - Pushed Cargo.lock for Flathub + • Changed navigation bar default toggle state + • Pushed Cargo.lock for Flathub ### 1.0.0: • First fully featured release • Adds Settings section for installing dependencies diff --git a/Cargo.lock b/Cargo.lock index 1afcc2e..91ae501 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -994,7 +994,7 @@ dependencies = [ [[package]] name = "cosmic-utils-enroll" -version = "1.0.2" +version = "1.0.3" dependencies = [ "futures-util", "i18n-embed 0.15.4", diff --git a/Cargo.toml b/Cargo.toml index f69b709..33c7105 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmic-utils-enroll" -version = "1.0.2" +version = "1.0.3" edition = "2024" license = "MPL-2.0" description = "GUI for fprintd fingerprint enrolling" diff --git a/org.cosmic_utils.enroll.yml b/org.cosmic_utils.enroll.yml index 82dde01..a259023 100644 --- a/org.cosmic_utils.enroll.yml +++ b/org.cosmic_utils.enroll.yml @@ -37,5 +37,5 @@ modules: sources: - type: git url: https://github.com/cosmic-utils/enroll.git - tag: 1.0.2 + tag: 1.0.3 - cargo-sources.json diff --git a/resources/org.cosmic_utils.enroll.desktop b/resources/org.cosmic_utils.enroll.desktop index 866fb5f..7e410e3 100644 --- a/resources/org.cosmic_utils.enroll.desktop +++ b/resources/org.cosmic_utils.enroll.desktop @@ -6,6 +6,6 @@ Icon=org.cosmic_utils.enroll Exec=cosmic-utils-enroll %F Terminal=false StartupNotify=true -Categories=Utility;COSMIC; +Categories=Utility;System; Keywords=Fingerprint;Security; MimeType= diff --git a/resources/org.cosmic_utils.enroll.metainfo.xml b/resources/org.cosmic_utils.enroll.metainfo.xml index 2cdd879..c723a50 100644 --- a/resources/org.cosmic_utils.enroll.metainfo.xml +++ b/resources/org.cosmic_utils.enroll.metainfo.xml @@ -46,8 +46,12 @@ https://github.com/cosmic-utils/enroll + https://user.fm/files/v2-33b0fc7cc6603b601fe9ec2b84915fd8/enroll.png + Main window main UI + + https://user.fm/files/v2-2f0daf05b0e66f25db2778188ab82373/enroll-main.png - Main window + Main window alternative UI https://user.fm/files/v2-808d13b70d649c6b65df2cce1849db2f/enroll-additional.png @@ -55,7 +59,7 @@ - +

Initial release.

diff --git a/src/app/fprint.rs b/src/app/fprint.rs index 5570128..a7b26e2 100644 --- a/src/app/fprint.rs +++ b/src/app/fprint.rs @@ -270,10 +270,9 @@ where validate_username(&username)?; let device = DeviceProxy::builder(connection).path(path)?.build().await?; - match device.claim(&username).await { - Ok(_) => {} - Err(e) => return Err(e), - }; + if let Err(e) = device.claim(&username).await { + return Err(e); + } if let Err(e) = device.verify_start(&finger).await { let _ = device.release().await; @@ -311,7 +310,6 @@ where } } - let _ = device.verify_stop().await; device.release().await }