Add back to all Options

This commit is contained in:
HarukiToreda
2025-12-15 01:38:22 -05:00
parent bd18a171d4
commit 5acf72243d

View File

@@ -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: