(self)
| 179 | return False |
| 180 | |
| 181 | def get_preferences(self) -> dict: |
| 182 | if not hasattr(self, "config_path_entry") or self.config_path_entry is None: |
| 183 | return {} |
| 184 | |
| 185 | return { |
| 186 | "config_path": self.config_path_entry.get_text(), |
| 187 | "backup_dir": self.backup_dir_entry.get_text(), |
| 188 | "auto_backup": self.auto_backup_switch.get_active(), |
| 189 | "editor_font_size": int(self.editor_font_spin.get_value()), |
| 190 | "prefer_dark_theme": self.dark_theme_switch.get_active(), |
| 191 | "raw_wrap_lines": self.raw_wrap_switch.get_active(), |
| 192 | } |
| 193 | |
| 194 | def set_preferences(self, prefs: dict): |
| 195 | if not hasattr(self, "config_path_entry") or self.config_path_entry is None: |
no outgoing calls
no test coverage detected