Skip to content

Commit

Permalink
Fix Back button on SystemMenu page
Browse files Browse the repository at this point in the history
[no ci]
  • Loading branch information
danngreen committed Dec 21, 2023
1 parent c4e1ca2 commit d8f51b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion firmware/src/gui/pages/system_menu.hh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ struct SystemMenuPage : PageBase {
void prepare_focus() final {
lv_hide(ui_FWUpdateSpinner);
lv_tabview_set_act(ui_SystemMenuTabView, 0, LV_ANIM_OFF);

lv_group_remove_all_objs(group);
lv_group_add_obj(group, tabs);
lv_group_focus_obj(tabs);
lv_group_set_editing(group, true);
}
Expand All @@ -38,7 +41,7 @@ struct SystemMenuPage : PageBase {

if (active_tab == Tabs::Update) {
fwupdate_page.update();
if (pressed_back && !fwupdate_page.consume_back_event())
if (pressed_back && fwupdate_page.consume_back_event())
pressed_back = false;
}

Expand Down

0 comments on commit d8f51b0

Please sign in to comment.