enhance: small user interface defaults
This commit is contained in:
parent
e82f3479fa
commit
807df3069a
2 changed files with 4 additions and 4 deletions
|
@ -170,11 +170,11 @@ async fn main() -> Result<()> {
|
|||
read_keys(&keys_entry, &mut rl)?
|
||||
};
|
||||
|
||||
info!("My active public key: {}", keys.public_key());
|
||||
info!("Your active public key: {}", keys.public_key());
|
||||
if args.peek().is_some_and(|arg| arg.trim_start_matches('-') == "export") {
|
||||
let enc_pwd = read_password(&mut rl, "Please enter an encryption password for your secret key: ")?;
|
||||
println!("Your encrypted key: {}", EncryptedSecretKey::new(keys.secret_key(), enc_pwd, 9, KeySecurity::Unknown)?.to_bech32()?);
|
||||
if rl.readline("Do you want to erase your stored secret keys (y/n)? ")? == "y" {
|
||||
if rl.readline("Do you want to erase your stored secret key (y/n)? ")? == "y" {
|
||||
keys_entry.delete_credential()?;
|
||||
}
|
||||
// TODO optionally delete
|
||||
|
|
|
@ -358,8 +358,8 @@ impl TasksRelay {
|
|||
let mut vec = Vec::with_capacity(set.len() / 2);
|
||||
let mut iter = timestamps(set.values(), &ids).tuples();
|
||||
while let Some(((start, _), (end, _))) = iter.next() {
|
||||
// Filter out intervals <2 mins
|
||||
if start.as_u64() + 120 < end.as_u64() {
|
||||
// Filter out intervals <3 mins
|
||||
if start.as_u64() + 200 < end.as_u64() {
|
||||
vec.push(format!(
|
||||
"{} - {} by {}",
|
||||
format_timestamp_local(start),
|
||||
|
|
Loading…
Add table
Reference in a new issue