summaryrefslogtreecommitdiff
path: root/src/ui/ui_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-12-07 17:17:30 +1100
committerjacqueline <me@jacqueline.id.au>2023-12-07 17:17:30 +1100
commitaaa949f71805e2040c7ee9a4d0a3c260de95a6d0 (patch)
treeb31febc367766caf49140a13b2d791cfd4d33616 /src/ui/ui_fsm.cpp
parent3f7f199cb940c8d5f6d48f77fd59971adffe49ef (diff)
parent852ce7b91790bc48aa7340527bd5f5ce53147492 (diff)
downloadtangara-fw-aaa949f71805e2040c7ee9a4d0a3c260de95a6d0.tar.gz
Merge branch 'main' of git.sr.ht:~jacqueline/tangara-fw
Diffstat (limited to 'src/ui/ui_fsm.cpp')
-rw-r--r--src/ui/ui_fsm.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp
index 9fc31481..783494dd 100644
--- a/src/ui/ui_fsm.cpp
+++ b/src/ui/ui_fsm.cpp
@@ -242,7 +242,7 @@ auto Lua::PushLuaScreen(lua_State* s) -> int {
return 0;
}
-auto Lua::PopLuaScreen(lua_State* s) -> int {
+auto Lua::PopLuaScreen(lua_State *s) -> int {
PopScreen();
luavgl_set_root(s, sCurrentScreen->content());
lv_group_set_default(sCurrentScreen->group());
@@ -303,6 +303,10 @@ void Lua::react(const audio::PlaybackFinished&) {
playback_playing_->Update(false);
}
+void Lua::react(const internal::BackPressed& ev) {
+ PopLuaScreen(sLua->state());
+}
+
void Browse::entry() {}
void Browse::react(const internal::ShowSettingsPage& ev) {