initialize menu before mounting PDDB

This is necessary because mounting the PDDB is a "secure" operation, and secure ops will fail until all UX contexts are occupied.

This problem does not manifest in hosted mode because we cheat and automount the PDDB in hosted mode.
This commit is contained in:
bunnie 2023-09-19 19:08:36 +08:00 committed by GitHub
parent 05d7e26ab7
commit c5d81ef08b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,14 +106,14 @@ impl Ui {
.expect("couldn't get dimensions of content canvas");
// TODO this is a stub - implement F1-4 actions and autocompletes
let _icontray = Icontray::new(Some(xous::connect(sid).unwrap()), ["F1", "F2", "F3", "F4"]);
let pddb = pddb::Pddb::new();
pddb.try_mount();
let menu_mgr = menu_matic(
Vec::<MenuItem>::new(),
app_menu,
Some(xous::create_server().unwrap()),
)
.expect("couldn't create MenuMatic manager");
let pddb = pddb::Pddb::new();
pddb.try_mount();
Ui {
input: None,
msg: None,