Clears all custom option rows from the list.
(self)
| 677 | self._add_custom_option_row(option.key, option.value) |
| 678 | |
| 679 | def _clear_custom_options(self): |
| 680 | """Clears all custom option rows from the list.""" |
| 681 | if not hasattr(self, "custom_options_list") or not self.custom_options_list: |
| 682 | return |
| 683 | child = self.custom_options_list.get_first_child() |
| 684 | while child: |
| 685 | self.custom_options_list.remove(child) |
| 686 | child = self.custom_options_list.get_first_child() |
| 687 | |
| 688 | def _add_custom_option_row(self, key: str = "", value: str = ""): |
| 689 | """Adds a new row for a custom option to the list.""" |
no outgoing calls
no test coverage detected