summaryrefslogtreecommitdiff
path: root/src/ui/ui_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-07-12 22:34:19 +1000
committerjacqueline <me@jacqueline.id.au>2023-07-12 22:34:19 +1000
commit8eabeedbb9a487653c6eca9cb814af3cccb29b6e (patch)
tree43d1230334a547e40b5de63e9a16fc56a8950842 /src/ui/ui_fsm.cpp
parent50bb261f67a0a32a75f7cd76e0a4e4231f6d57c8 (diff)
downloadtangara-fw-8eabeedbb9a487653c6eca9cb814af3cccb29b6e.tar.gz
Make title bar a common component, some ui nits
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 d2d0ad59..96949cd0 100644
--- a/src/ui/ui_fsm.cpp
+++ b/src/ui/ui_fsm.cpp
@@ -20,6 +20,7 @@
#include "system_events.hpp"
#include "touchwheel.hpp"
#include "track_queue.hpp"
+#include "ui_events.hpp"
namespace ui {
@@ -147,6 +148,10 @@ void Browse::react(const internal::IndexSelected& ev) {
std::move(query)));
}
+void Browse::react(const internal::BackPressed& ev) {
+ PopScreen();
+}
+
static std::shared_ptr<screens::Playing> sPlayingScreen;
void Playing::entry() {
@@ -171,6 +176,10 @@ void Playing::react(const audio::QueueUpdate& ev) {
sPlayingScreen->OnQueueUpdate();
}
+void Playing::react(const internal::BackPressed& ev) {
+ transit<Browse>();
+}
+
} // namespace states
} // namespace ui