Skip to content

Commit

Permalink
- also allow closing the settings with the same key, that opens them
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Jan 21, 2024
1 parent 7dd6cfc commit 35e6594
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scenes/settings_menu/settings_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ namespace scenes {
return true;
}

if (utils::event_is_action(event, utils::CrossPlatformAction::OPEN_SETTINGS)) {
m_should_exit = true;
return true;
}

// return true all the time, since no scene then the settings should receive inputs (since we draw black over them anyway!)
return true;
}
Expand Down

0 comments on commit 35e6594

Please sign in to comment.