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

Method get_preferences

src/ui/preferences_dialog.py:181–192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers 3

_load_preferencesMethod · 0.95
on_close_requestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected