Skip to content

Commit d74673a

Browse files
committed
allow main menu to be used if there are no root keys
1 parent ed09ee0 commit d74673a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/pddb/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ fn wrapped_main() -> ! {
662662
if !pddb_os.rootkeys_initialized() {
663663
// can't mount if we have no root keys
664664
log::info!("{}PDDB.SKIPMOUNT,{}", xous::BOOKEND_START, xous::BOOKEND_END);
665+
// allow the main menu to be used in this case
666+
let gam = gam::Gam::new(&xns).unwrap();
667+
gam.allow_mainmenu().expect("coudln't allow main menu activation");
665668
xous::return_scalar2(msg.sender, 1, 0).expect("could't return scalar");
666669
} else {
667670
match ensure_password(&modals, &mut pddb_os, pw_cid) {

0 commit comments

Comments
 (0)