diff --git a/octoprint_klipper/__init__.py b/octoprint_klipper/__init__.py index 7ee3aec..e258d0c 100644 --- a/octoprint_klipper/__init__.py +++ b/octoprint_klipper/__init__.py @@ -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': '

' + gettext("You are about to restart Klipper!") + '
' + gettext("This will stop ongoing prints!") + '


Command = "sudo service klipper restart"' + }] + } +} def __plugin_load__():