🐛 action prompt: close & delete prompt on disconnect
As mentioned in #3171
This commit is contained in:
1 parent
2822992843
commit
59b60f5dad
1 file changed
+2
@@ -69,6 +69,8 @@ class ActionCommandPromptPlugin(octoprint.plugin.AssetPlugin,
|
||||
def on_event(self, event, payload):
|
||||
if event == Events.CONNECTED and self._enable == "always" and self._enable_signal_support:
|
||||
self._printer.commands(["{command} P1".format(command=self._command)])
|
||||
elif event == Events.DISCONNECTED:
|
||||
self._close_prompt()
|
||||
|
||||
#~ SettingsPlugin
|
||||
|
||||
|
||||
Reference in new issue
Block a user