Persist that a specific warning was confirmed once.
(self, key)
| 353 | return False |
| 354 | |
| 355 | def remember_warning_preference(self, key): |
| 356 | """Persist that a specific warning was confirmed once.""" |
| 357 | section = "warnings" |
| 358 | if not self.config.has_section(section): |
| 359 | self.config.add_section(section) |
| 360 | self.config.set(section, key, 'True') |
| 361 | self.__schedule_flush() |
| 362 | |
| 363 | def clear_warning_preferences(self): |
| 364 | """Clear all saved warning confirmations.""" |