mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add basis cache clear on basis change callback as well
This commit is contained in:
parent
57254ce47c
commit
ec5435bd58
2 changed files with 7 additions and 0 deletions
|
|
@ -450,6 +450,7 @@ fn main() -> ! {
|
|||
}
|
||||
}
|
||||
Some(VaultOp::BasisChange) => {
|
||||
vaultux.basis_change();
|
||||
// this set of calls will effectively force a reload of any UX data
|
||||
*mode.lock().unwrap() = VaultMode::Fido;
|
||||
send_message(actions_conn,
|
||||
|
|
|
|||
|
|
@ -204,6 +204,12 @@ impl VaultUx {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) fn basis_change(&mut self) {
|
||||
self.item_lists.lock().unwrap().pw.clear();
|
||||
self.item_lists.lock().unwrap().fido.clear();
|
||||
self.item_lists.lock().unwrap().totp.clear();
|
||||
}
|
||||
|
||||
pub(crate) fn update_mode(&mut self) {
|
||||
self.title_dirty = true;
|
||||
self.filtered_list.clear();
|
||||
|
|
|
|||
Loading…
Reference in a new issue