summaryrefslogtreecommitdiff
path: root/src/ui/ui_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-25 15:13:25 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-25 15:13:25 +1000
commit795f26873742eaad7ce53084052d988a0fd542f8 (patch)
tree1616ad6149c27b3cd263377741c677d5294a5080 /src/ui/ui_fsm.cpp
parent3b3bc64d19715c418f407d5231795ca5a2c2fa71 (diff)
downloadtangara-fw-795f26873742eaad7ce53084052d988a0fd542f8.tar.gz
Add placeholder settings UI
Diffstat (limited to 'src/ui/ui_fsm.cpp')
-rw-r--r--src/ui/ui_fsm.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp
index 8b2d3a3c..e8660207 100644
--- a/src/ui/ui_fsm.cpp
+++ b/src/ui/ui_fsm.cpp
@@ -21,6 +21,7 @@
#include "screen.hpp"
#include "screen_menu.hpp"
#include "screen_playing.hpp"
+#include "screen_settings.hpp"
#include "screen_splash.hpp"
#include "screen_track_browser.hpp"
#include "source.hpp"
@@ -137,6 +138,14 @@ void Browse::react(const system_fsm::StorageMounted& ev) {
PushScreen(std::make_shared<screens::Menu>(db->GetIndexes()));
}
+void Browse::react(const internal::ShowNowPlaying& ev) {
+ transit<Playing>();
+}
+
+void Browse::react(const internal::ShowSettingsPage& ev) {
+ PushScreen(ev.screen);
+}
+
void Browse::react(const internal::RecordSelected& ev) {
auto db = sDb.lock();
if (!db) {