review
This commit is contained in:
@@ -18,8 +18,6 @@ pub struct PassphraseState {
|
||||
}
|
||||
|
||||
/// Open the dialog asking for the passphrase that protects the stored identity.
|
||||
/// The identity is NIP-49 encrypted, for example `ncryptsec1...`.
|
||||
/// Called when the backend emits [`signed_state::BackendEvent::PassphraseRequired`].
|
||||
pub fn open(window: &mut Window, cx: &mut App) {
|
||||
let pass_input = cx.new(|cx| {
|
||||
InputState::new(window, cx)
|
||||
@@ -98,8 +96,6 @@ pub fn open(window: &mut Window, cx: &mut App) {
|
||||
}
|
||||
|
||||
/// Submit the passphrase to the backend.
|
||||
/// On success the dialog closes.
|
||||
/// On failure the error is rendered inline and the dialog stays open.
|
||||
fn unlock(
|
||||
pass_input: &Entity<InputState>,
|
||||
state: &Entity<PassphraseState>,
|
||||
|
||||
Reference in New Issue
Block a user