Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Molodos committed Oct 11, 2023
1 parent 9e3b28a commit 205bf27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, statistics_id: str, plugin_json: dict[str, Any]):
self.corner_options: list[int] = [1, 4, 3, 5]
self.statistics_enabled: bool = True
self.use_current_model: bool = False
self.klipper_thumbnails_enabled: bool = False
self.klipper_thumbnails_enabled: bool = True

def get_printer_model_id(self) -> str:
"""
Expand Down Expand Up @@ -101,7 +101,7 @@ def load_json(self, data: dict[str, Any]) -> None:
self._set_corner_option_ids(data.get("corner_options", None))
self.statistics_enabled = data.get("statistics_enabled", True)
self.use_current_model = data.get("use_current_model", False)
self.klipper_thumbnails_enabled = data.get("klipper_thumbnails_enabled", False)
self.klipper_thumbnails_enabled = data.get("klipper_thumbnails_enabled", True)

def to_json(self) -> dict[str, Any]:
"""
Expand Down Expand Up @@ -159,7 +159,7 @@ def load(cls) -> None:
cls._settings.corner_options = [1, 4, 3, 5]
cls._settings.statistics_enabled = True
cls._settings.use_current_model = False
cls._settings.klipper_thumbnails_enabled = False
cls._settings.klipper_thumbnails_enabled = True

# Try to recognize current printer model
printer_id: str = Application.getInstance().getMachineManager().activeMachine.definition.getId()
Expand Down

0 comments on commit 205bf27

Please sign in to comment.