Merge branch 'maintenance' into devel

This commit is contained in:
GitHub Nightly Merge Action committed 2023-06-21 00:12:50 +00:00
commit 5ee83611b0
3 files changed
+7 -3

No files matched your search

+1
View File
@@ -179,6 +179,7 @@ date of first contribution):
* [Shyam Sunder](https://github.com/sgsunder)
* [Conny Rasch](https://github.com/CMR-DEV)
* [Christopher Perrin](https://github.com/cperrin88)
* [Martin Bartsch](https://github.com/kaenguruhs)
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
[Daid Braam](https://github.com/daid). Parts of its communication layer and
+4 -2
View File
@@ -381,10 +381,12 @@ class PrinterStateConnection(
self._subscriptions["plugins"] = plugins
self._subscriptions["events"] = events
if state and not old_state:
# trigger initial data
if state and state != old_state:
# state is requested and was changed from previous state
# we should send a history message to send the update data
self._printer.send_initial_callback(self)
elif old_state and not state:
# we no longer should send state updates
self._initial_data_sent = False
def on_printer_send_current_data(self, data):
+2 -1
View File
@@ -36,6 +36,7 @@ from octoprint.util import (
TypeAlreadyInQueue,
TypedQueue,
chunks,
dict_merge,
filter_non_ascii,
filter_non_utf8,
get_bom,
@@ -1377,7 +1378,7 @@ class MachineCom:
if len(retval) == 3:
variables = retval[2]
context.update({"plugins": {name: variables}})
context = dict_merge(context, {"plugins": {name: variables}})
template = settings().loadScript("gcode", scriptName, context=context)
if template is None: