setup: Connect ui to the state manager

This ensures that the layout type information is accessible to the state manager when new layout information arrive.

The should be thought of as a stopgap measure. A proper solution would be to separate the state properly, and probably turn layout information coming from random places into messages that some object (thread?) collects and displays.
This commit is contained in:
Dorota Czaplejewicz
2020-01-28 21:32:47 +00:00
parent 63d68c004a
commit 7a588460bf
4 changed files with 11 additions and 1 deletions

View File

@ -201,7 +201,10 @@ fn load_layout_data_with_fallback(
source, e
),
},
Ok(layout) => return (kind, layout),
Ok(layout) => {
log_print!(logging::Level::Info, "Loaded layout {}", source);
return (kind, layout);
}
}
}