From b0d745d02dcfd6ab9b1ad14e9060b39bf9ad7bb8 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 8 Sep 2023 16:58:30 +1000 Subject: Flesh out onboarding a little, and add a way to get into it --- src/ui/ui_fsm.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/ui/ui_fsm.cpp') diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp index c463933f..70a77c2a 100644 --- a/src/ui/ui_fsm.cpp +++ b/src/ui/ui_fsm.cpp @@ -23,6 +23,7 @@ #include "relative_wheel.hpp" #include "screen.hpp" #include "screen_menu.hpp" +#include "screen_onboarding.hpp" #include "screen_playing.hpp" #include "screen_settings.hpp" #include "screen_splash.hpp" @@ -150,7 +151,15 @@ void Splash::react(const system_fsm::BootComplete& ev) { ESP_LOGE(kTag, "no input devices initialised!"); } - transit(); + if (sServices->nvs().HasShownOnboarding().get()) { + transit(); + } else { + transit(); + } +} + +void Onboarding::entry() { + sCurrentScreen.reset(new screens::onboarding::LinkToManual()); } void Browse::entry() {} -- cgit v1.2.3