| 135 | } |
| 136 | |
| 137 | void restore_settings(color_ostream &out) { |
| 138 | if (!saved || was_in_settings) |
| 139 | return; |
| 140 | DEBUG(control,out).print("restoring saved announcement settings\n"); |
| 141 | for (size_t i = 0; i < announcement_flag_arr_size; ++i) |
| 142 | d_init->announcements.flags[i].whole = (*saved)[i]; |
| 143 | } |
| 144 | |
| 145 | // remove pausing, popups, and recentering from all announcements |
| 146 | // saves first so the original settings can be restored |
no test coverage detected