From 11b230b5d4475842a0c2dfa839467cac060817c7 Mon Sep 17 00:00:00 2001 From: PrimmR Date: Tue, 2 Jul 2024 19:00:31 +0100 Subject: [PATCH] Spruce up for v0.2.0 --- README.md | 2 +- authogonal/src/lib.rs | 9 +++++---- icon/Icon.svg | 44 +++++++++++++++++++++---------------------- 3 files changed, 28 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index dd0644a..24dfaba 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Download the executable file and run it by double-clicking. Except for any smart Firstly, download the app file and copy it into the system's `Applications` folder (it will not work when run from `Desktop` or `Downloads`). -Then, because I don't have an Apple developer account, macs will try their hardest to prevent the app from running. To circumvent this, you will need to navigate to the `Security & Privacy` menu in System Preferences and choose the `Open Anyway` option next to the message that the app has been blocked. You should only have to do this once. +Then, because I don't have an Apple developer account, macs will try their hardest to prevent the app from running. To circumvent this, you will need to navigate to the `Security & Privacy` menu in System Preferences after attempting to run it, and then choose the `Open Anyway` option next to the message stating that the app has been blocked. You should only have to do this once. Alternatively, you can build and run the application from source to avoid having to do this, which will also give the application permission to be executed from anywhere. diff --git a/authogonal/src/lib.rs b/authogonal/src/lib.rs index d85dfb3..69e946e 100644 --- a/authogonal/src/lib.rs +++ b/authogonal/src/lib.rs @@ -757,11 +757,12 @@ pub mod ui { &self.password_field, )) { self.error = String::from("An error occurred") + } else { + // Sets the key attribute and closes the window, as with enter button + *(*self.encryption_key).borrow_mut() = + Some(encrypt::password_to_key(&self.password_field)); + ctx.send_viewport_cmd(egui::ViewportCommand::Close) } - // Sets the key attribute and closes the window, as with enter button - *(*self.encryption_key).borrow_mut() = - Some(encrypt::password_to_key(&self.password_field)); - ctx.send_viewport_cmd(egui::ViewportCommand::Close) } }) }); diff --git a/icon/Icon.svg b/icon/Icon.svg index 6a20ce1..4801c57 100644 --- a/icon/Icon.svg +++ b/icon/Icon.svg @@ -2,16 +2,16 @@ @@ -88,8 +88,8 @@ id="rect1" width="16" height="16" - x="4" - y="4" + x="5.8459997" + y="5.8461542" ry="2.5" rx="2.5" inkscape:label="Zig" /> @@ -105,19 +105,19 @@ id="layer1"> @@ -129,15 +129,15 @@ transform="rotate(-30,104.17331,164.95748)">