Skip to content

Commit

Permalink
Fix issue with saving doSmartPreheat snippet in settings (#1)
Browse files Browse the repository at this point in the history
self.settings.plugins.smartpreheat won't exist without at least one setting defined. Present a dummy setting for now.
  • Loading branch information
kantlivelong committed May 2, 2020
1 parent f0e49a3 commit 745846f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_smartpreheat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def on_settings_initialized(self):
self._settings.saveScript("gcode", "snippets/doSmartPreheat", u'' + script.replace("\r\n", "\n").replace("\r", "\n"))

def get_settings_defaults(self):
return dict()
return dict(dummy=False)

def get_template_configs(self):
return [
Expand Down

0 comments on commit 745846f

Please sign in to comment.