From 8eabeedbb9a487653c6eca9cb814af3cccb29b6e Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 12 Jul 2023 22:34:19 +1000 Subject: Make title bar a common component, some ui nits --- src/ui/ui_fsm.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ui/ui_fsm.cpp') 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 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(); +} + } // namespace states } // namespace ui -- cgit v1.2.3