mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
fix UX update issue on FIDO adding records.
maybe need to also chase this down in the password add new area too? need to check.
This commit is contained in:
parent
278570d8d3
commit
72859d18dd
2 changed files with 12 additions and 2 deletions
|
|
@ -123,6 +123,8 @@ pub(crate) enum VaultOp {
|
||||||
Redraw,
|
Redraw,
|
||||||
/// ignore dirty rectangles and redraw everything
|
/// ignore dirty rectangles and redraw everything
|
||||||
FullRedraw,
|
FullRedraw,
|
||||||
|
/// reload the database (slow), and ignore dirty rectangles and redraw everything
|
||||||
|
ReloadDbAndFullRedraw,
|
||||||
/// change focus
|
/// change focus
|
||||||
ChangeFocus,
|
ChangeFocus,
|
||||||
|
|
||||||
|
|
@ -411,6 +413,15 @@ fn main() -> ! {
|
||||||
vaultux.redraw().expect("Vault couldn't redraw");
|
vaultux.redraw().expect("Vault couldn't redraw");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Some(VaultOp::ReloadDbAndFullRedraw) => {
|
||||||
|
send_message(actions_conn,
|
||||||
|
Message::new_blocking_scalar(ActionOp::UpdateMode.to_usize().unwrap(), 0, 0, 0, 0)
|
||||||
|
).ok();
|
||||||
|
vaultux.update_mode();
|
||||||
|
if allow_redraw {
|
||||||
|
vaultux.redraw().expect("Vault couldn't redraw");
|
||||||
|
}
|
||||||
|
}
|
||||||
Some(VaultOp::BasisChange) => {
|
Some(VaultOp::BasisChange) => {
|
||||||
// this set of calls will effectively force a reload of any UX data
|
// this set of calls will effectively force a reload of any UX data
|
||||||
*mode.lock().unwrap() = VaultMode::Fido;
|
*mode.lock().unwrap() = VaultMode::Fido;
|
||||||
|
|
|
||||||
|
|
@ -503,12 +503,11 @@ pub(crate) fn start_fido_ux_thread(main_conn: xous::CID) {
|
||||||
|
|
||||||
// force a redraw of the screen so the new record is rendered,
|
// force a redraw of the screen so the new record is rendered,
|
||||||
// but for some reason this isn't working...
|
// but for some reason this isn't working...
|
||||||
tt.sleep_ms(350).ok();
|
|
||||||
log::info!("sycing UI state...");
|
log::info!("sycing UI state...");
|
||||||
send_message(
|
send_message(
|
||||||
main_conn,
|
main_conn,
|
||||||
Message::new_scalar(
|
Message::new_scalar(
|
||||||
crate::VaultOp::FullRedraw.to_usize().unwrap(),
|
crate::VaultOp::ReloadDbAndFullRedraw.to_usize().unwrap(),
|
||||||
0, 0, 0, 0)
|
0, 0, 0, 0)
|
||||||
).unwrap();
|
).unwrap();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue