Merge branch 'feat/55-add-restart-command'

This commit is contained in:
thelastWallE 2021-09-05 15:28:17 +02:00
parent 93222b6023
commit d70198b14b
1 changed files with 10 additions and 0 deletions

View File

@ -679,6 +679,16 @@ class KlipperPlugin(
__plugin_name__ = "OctoKlipper"
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_settings_overlay__ = {
'system': {
'actions': [{
'action': 'octoklipper_restart',
'command': 'sudo service klipper restart',
'name': 'Restart Klipper',
'confirm': '<h3><center><b>' + gettext("You are about to restart Klipper!") + '<br>' + gettext("This will stop ongoing prints!") + '</b></center></h3><br>Command = "sudo service klipper restart"'
}]
}
}
def __plugin_load__():