From 94a6d8340d61a1fc6963ee4c2a3df4dab04d5797 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 4 Feb 2016 12:17:10 -0800 Subject: [PATCH] Add left key navigation out of newer menus. TODO: Ripe for a base class or something. --- firmware/application/ui_navigation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/application/ui_navigation.cpp b/firmware/application/ui_navigation.cpp index dfa252317..364242792 100644 --- a/firmware/application/ui_navigation.cpp +++ b/firmware/application/ui_navigation.cpp @@ -133,6 +133,7 @@ TranspondersMenuView::TranspondersMenuView(NavigationView& nav) { { "ERT: Utility Meters", [&nav](){ nav.push(); } }, { "TPMS: Cars", [&nav](){ nav.push(); } }, } }); + on_left = [&nav](){ nav.pop(); }; } /* ReceiverMenuView ******************************************************/ @@ -142,6 +143,7 @@ ReceiverMenuView::ReceiverMenuView(NavigationView& nav) { { "Audio", [&nav](){ nav.push(); } }, { "Transponders", [&nav](){ nav.push(); } }, } }); + on_left = [&nav](){ nav.pop(); }; } /* SystemMenuView ********************************************************/