Set the wrap mode for the raw text view based on preferences.
(self, wrap: bool)
| 1381 | return False |
| 1382 | |
| 1383 | def set_wrap_mode(self, wrap: bool): |
| 1384 | """Set the wrap mode for the raw text view based on preferences.""" |
| 1385 | try: |
| 1386 | if wrap: |
| 1387 | self.raw_text_view.set_wrap_mode(Gtk.WrapMode.WORD_CHAR) |
| 1388 | else: |
| 1389 | self.raw_text_view.set_wrap_mode(Gtk.WrapMode.NONE) |
| 1390 | except Exception: |
| 1391 | pass |
| 1392 | |
| 1393 | def is_host_dirty(self) -> bool: |
| 1394 | """Checks if the current host has unsaved changes compared to its original loaded state.""" |
no outgoing calls
no test coverage detected