enhance: small user interface defaults

This commit is contained in:
xeruf 2025-01-29 23:04:54 +01:00
parent e82f3479fa
commit 807df3069a
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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),