fixed update source and deprecation warnings
This commit is contained in:
parent
7f5d45efdc
commit
79587644b4
4 changed files with 6 additions and 5 deletions
|
|
@ -55,7 +55,7 @@ class LaserSafetyNotesPlugin(octoprint.plugin.SettingsPlugin,
|
|||
def on_settings_save(self, data):
|
||||
if "has_agreed" in data:
|
||||
has_agreed = data["has_agreed"] in octoprint.settings.valid_boolean_trues
|
||||
s.setBoolean(["agreed_to_safety_notes"], has_agreed)
|
||||
s.set_boolean(["agreed_to_safety_notes"], has_agreed)
|
||||
|
||||
##~~ TemplatePlugin API
|
||||
|
||||
|
|
|
|||
|
|
@ -127,8 +127,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
|||
return {
|
||||
"checks": {
|
||||
"octoprint": {
|
||||
"type": "github_release",
|
||||
"user": "foosel",
|
||||
#"type": "github_release",
|
||||
"type": "github_commit",
|
||||
"user": "mrbeam",
|
||||
"repo": "OctoPrint",
|
||||
"update_script": "{{python}} \"{update_script}\" --python=\"{{python}}\" \"{{folder}}\" {{target}}".format(update_script=os.path.join(self._basefolder, "scripts", "update-octoprint.py")),
|
||||
"restart": "octoprint"
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ class SvgToGcodePlugin(octoprint.plugin.SlicerPlugin,
|
|||
self._svgtogcode_logger.setLevel(logging.DEBUG)
|
||||
else:
|
||||
self._svgtogcode_logger.setLevel(logging.CRITICAL)
|
||||
s.setBoolean(["debug_logging"], new_debug_logging)
|
||||
s.set_boolean(["debug_logging"], new_debug_logging)
|
||||
|
||||
##~~ TemplatePlugin API
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<div class="modal-body">
|
||||
<div class="full-sized-box">
|
||||
<div class="tabbable row-fluid">
|
||||
<div class="span3 scrollable" id="settings_dialog_menu">
|
||||
<div class="span3" id="settings_dialog_menu">
|
||||
<ul class="nav nav-list" id="settingsTabs">
|
||||
{% set mark_active = True %}
|
||||
{% for key in templates.settings.order %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue