mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 19:20:41 +00:00
Add back to all Options
This commit is contained in:
@@ -724,6 +724,7 @@ void InkHUD::MenuApplet::showPage(MenuPage page)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case OPTIONS:
|
case OPTIONS:
|
||||||
|
items.push_back(MenuItem("Back", MenuAction::BACK, MenuPage::ROOT));
|
||||||
// Optional: backlight
|
// Optional: backlight
|
||||||
if (settings->optionalMenuItems.backlight)
|
if (settings->optionalMenuItems.backlight)
|
||||||
items.push_back(MenuItem(backlight->isLatched() ? "Backlight Off" : "Keep Backlight On", // Label
|
items.push_back(MenuItem(backlight->isLatched() ? "Backlight Off" : "Keep Backlight On", // Label
|
||||||
@@ -761,17 +762,20 @@ void InkHUD::MenuApplet::showPage(MenuPage page)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case APPLETS:
|
case APPLETS:
|
||||||
populateAppletPage();
|
populateAppletPage(); // must be first
|
||||||
|
items.insert(items.begin(), MenuItem("Back", MenuAction::BACK, MenuPage::OPTIONS));
|
||||||
items.push_back(MenuItem("Exit", MenuPage::EXIT));
|
items.push_back(MenuItem("Exit", MenuPage::EXIT));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AUTOSHOW:
|
case AUTOSHOW:
|
||||||
populateAutoshowPage();
|
populateAutoshowPage(); // must be first
|
||||||
|
items.insert(items.begin(), MenuItem("Back", MenuAction::BACK, MenuPage::OPTIONS));
|
||||||
items.push_back(MenuItem("Exit", MenuPage::EXIT));
|
items.push_back(MenuItem("Exit", MenuPage::EXIT));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RECENTS:
|
case RECENTS:
|
||||||
populateRecentsPage();
|
populateRecentsPage(); // builds only the options
|
||||||
|
items.insert(items.begin(), MenuItem("Back", MenuAction::BACK, MenuPage::OPTIONS));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NODE_CONFIG:
|
case NODE_CONFIG:
|
||||||
|
|||||||
Reference in New Issue
Block a user