mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
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:
parent
05d7e26ab7
commit
c5d81ef08b
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue