Added missing Checkbox for debug logging
setting was already there in the configuration. -bump for rc5
This commit is contained in:
parent
cc90ca8862
commit
47cf9eace1
|
@ -425,7 +425,6 @@ class KlipperPlugin(
|
|||
return flask.jsonify(data=data["config"])
|
||||
elif command == "checkConfig":
|
||||
if "config" in data:
|
||||
self.log_debug("config in ")
|
||||
if not self.validate_configfile(data["config"]):
|
||||
self.log_debug("validateConfig ->" + data["config"])
|
||||
self._settings.set(["configuration", "old_config"], data["config"])
|
||||
|
@ -533,7 +532,9 @@ class KlipperPlugin(
|
|||
dataToValidated = configparser.RawConfigParser()
|
||||
dataToValidated.read_string(dataToBeValidated)
|
||||
except configparser.Error as error:
|
||||
error.message = error.message.replace("\n","")
|
||||
error.message = error.message.replace("\\n","")
|
||||
error.message = error.message.replace("file:","Klipper Configuration", 1)
|
||||
error.message = error.message.replace("'","", 2)
|
||||
error.source = "Klipper config"
|
||||
self.log_error(
|
||||
"Error: Invalid Klipper config file:\n" +
|
||||
|
@ -542,7 +543,7 @@ class KlipperPlugin(
|
|||
self.send_message("PopUp", "warning", "Invalid Config",
|
||||
"Config got not saved!\n" +
|
||||
"You can reload your last changes\n" +
|
||||
"on the file editor tab.\n\n" + str(error))
|
||||
"on the 'Klipper Configuration' tab.\n\n" + str(error))
|
||||
self._parsing_check_response = False
|
||||
return
|
||||
else:
|
||||
|
|
|
@ -19,12 +19,19 @@
|
|||
<div class="controls">
|
||||
<input type="checkbox" class="input-block-level" data-bind="checked: settings.settings.plugins.klipper.connection.replace_connection_panel">
|
||||
</div>
|
||||
</div><div class="control-group">
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">{{ _('Show NavBar Message') }}</label>
|
||||
<div class="controls">
|
||||
<input type="checkbox" class="input-block-level" data-bind="checked: settings.settings.plugins.klipper.configuration.navbar">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">{{ _('Enable debug logging') }}</label>
|
||||
<div class="controls">
|
||||
<input type="checkbox" class="input-block-level" data-bind="checked: settings.settings.plugins.klipper.configuration.debug_logging">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">{{ _('Klipper Config File') }}</label>
|
||||
<div class="controls">
|
||||
|
|
Loading…
Reference in New Issue