Skip to content

Commit

Permalink
Settings menu -> Both buttons return a menu layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralim committed Oct 23, 2023
1 parent fd285b3 commit 17bcc85
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/Core/Threads/OperatingModes/SettingsMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,15 @@ OperatingMode gui_SettingsMenu(const ButtonState buttons, guiContext *cxt) {
(*autoRepeatTimer) = 0; // reset acceleration
break;
case BUTTON_BOTH:
return OperatingMode::HomeScreen;
if (*subEntry == 0) {
saveSettings();
cxt->transitionMode = TransitionAnimation::Left;
return OperatingMode::HomeScreen;
} else {
cxt->transitionMode = TransitionAnimation::Left;
*subEntry = 0;
return OperatingMode::SettingsMenu;
}
break;

case BUTTON_F_LONG:
Expand Down

0 comments on commit 17bcc85

Please sign in to comment.