working on the peripheral state handling

This commit is contained in:
2026-09-20 21:44:15 +01:00
parent dcba0774c2
commit 5d5b7bfdc3
6 changed files with 107 additions and 9 deletions
@@ -35,6 +35,7 @@ func NewLayoutController(base *Controller, service *services.DeviceService) *Lay
DevService: service,
MoveToolState: &windowManipState{Mode: moveMode},
// SelectedLayout: "beamng.yaml",
// TODO: this can't be here - the service/peripheral needs to know about it
SelectedLayout: "layout.yaml",
}
@@ -404,7 +405,8 @@ func (lc *LayoutController) loadLayout() {
}
// ---
// We would get the layout path from somewhere but for nots its layout.yaml
// TODO: This can happen here, but we need to address how the layout is gotten
// THE UI SHOULD SET STATE IN THE SERVICES ONLY
err = display.LoadLayout(lc.SelectedLayout)
if err != nil {
lc.Messages <- "failed to load layout: " + err.Error()