* Restores the default options. * @param action Pointer to an action. */
| 101 | * @param action Pointer to an action. |
| 102 | */ |
| 103 | void OptionsDefaultsState::btnYesClick(Action *action) |
| 104 | { |
| 105 | if (_origin == OPT_MENU && Options::rulesets.size() > 1) |
| 106 | { |
| 107 | Options::reload = true; |
| 108 | } |
| 109 | Options::resetDefault(); |
| 110 | _game->defaultLanguage(); |
| 111 | _game->popState(); |
| 112 | _state->btnOkClick(action); |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Closes the window. |
nothing calls this directly
no test coverage detected