Skip to content

Commit

Permalink
allow main menu to be used if there are no root keys
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Nov 3, 2022
1 parent ed09ee0 commit d74673a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/pddb/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,9 @@ fn wrapped_main() -> ! {
if !pddb_os.rootkeys_initialized() {
// can't mount if we have no root keys
log::info!("{}PDDB.SKIPMOUNT,{}", xous::BOOKEND_START, xous::BOOKEND_END);
// allow the main menu to be used in this case
let gam = gam::Gam::new(&xns).unwrap();
gam.allow_mainmenu().expect("coudln't allow main menu activation");
xous::return_scalar2(msg.sender, 1, 0).expect("could't return scalar");
} else {
match ensure_password(&modals, &mut pddb_os, pw_cid) {
Expand Down

0 comments on commit d74673a

Please sign in to comment.