MCPcopy Create free account
hub / github.com/BuddySirJava/SSH-Studio / set_wrap_mode

Method set_wrap_mode

src/ui/host_editor.py:1383–1391  ·  view source on GitHub ↗

Set the wrap mode for the raw text view based on preferences.

(self, wrap: bool)

Source from the content-addressed store, hash-verified

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."""

Callers 2

on_close_requestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected