This commit is contained in:
2025-12-06 17:51:54 +01:00
parent f086ed3021
commit 12110bd8b4
4 changed files with 124 additions and 22 deletions

View File

@ -253,9 +253,12 @@ void OptionsState::toggleSmoothScroll() {
}
void OptionsState::exitToMenu() {
// Try a graceful fade transition if available, but always ensure we
// return to the Menu state so the UI is responsive to the user's action.
if (ctx.requestFadeTransition) {
ctx.requestFadeTransition(AppState::Menu);
} else if (ctx.stateManager) {
}
if (ctx.stateManager) {
ctx.stateManager->setState(AppState::Menu);
}
}