♻ gcode => printables
This commit is contained in:
1 parent
09a043b393
commit
253a38c32d
2 files changed
+2
-2
No files matched your search
@@ -230,7 +230,7 @@ class EventManager(object):
|
||||
|
||||
if event == Events.UPDATED_FILES and "type" in payload and payload["type"] == "printables":
|
||||
# when sending UpdatedFiles with type "printables", also send another event with deprecated type "gcode"
|
||||
# TODO v1.3.0 Remove again
|
||||
# TODO v1.4.0 Remove again
|
||||
import copy
|
||||
legacy_payload = copy.deepcopy(payload)
|
||||
legacy_payload["type"] = "gcode"
|
||||
|
||||
@@ -902,7 +902,7 @@ $(function() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (payload.type !== "gcode") {
|
||||
if (payload.type !== "printables") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user