diff options
Diffstat (limited to 'src/ui/ui_fsm.cpp')
| -rw-r--r-- | src/ui/ui_fsm.cpp | 9 |
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 |
