mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix deletion UX in vault
This commit is contained in:
parent
329569803d
commit
d811ef0d2e
2 changed files with 4 additions and 1 deletions
|
|
@ -511,6 +511,9 @@ impl<'a> ActionManager<'a> {
|
|||
Ok(_) => self.modals.show_notification(t!("vault.completed", xous::LANG), None).ok().unwrap(),
|
||||
Err(e) => self.report_err(t!("vault.error.internal_error", xous::LANG), Some(e)),
|
||||
}
|
||||
if entry.mode == VaultMode::Password {
|
||||
self.item_lists.lock().unwrap().pw.remove(entry.key_name.as_str().unwrap_or("UTF-8 error"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ impl ListItem {
|
|||
}
|
||||
}
|
||||
pub fn key(&self) -> String {
|
||||
self.name.to_string() + &self.guid.to_string()
|
||||
self.guid.to_string()
|
||||
}
|
||||
}
|
||||
impl Ord for ListItem {
|
||||
|
|
|
|||
Loading…
Reference in a new issue