remove pausing, popups, and recentering from all announcements saves first so the original settings can be restored
| 145 | // remove pausing, popups, and recentering from all announcements |
| 146 | // saves first so the original settings can be restored |
| 147 | void save_and_scrub_settings(color_ostream &out) { |
| 148 | if (Gui::matchFocusString("dwarfmode/Settings")) { |
| 149 | DEBUG(control,out).print("not modifying announcement settings; vanilla settings screen is active\n"); |
| 150 | return; |
| 151 | } |
| 152 | |
| 153 | save_settings(out); |
| 154 | |
| 155 | DEBUG(control,out).print("scrubbing announcement settings\n"); |
| 156 | for (auto& flag : d_init->announcements.flags) { |
| 157 | flag.bits.DO_MEGA = false; |
| 158 | flag.bits.PAUSE = false; |
| 159 | flag.bits.RECENTER = false; |
| 160 | } |
| 161 | } |
| 162 | } announcement_settings; |
| 163 | |
| 164 | ///////////////////////////////////////////////////// |
no test coverage detected