diff --git a/src/octoprint/events.py b/src/octoprint/events.py index 30f141f84..a5fe562ba 100644 --- a/src/octoprint/events.py +++ b/src/octoprint/events.py @@ -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" diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index 88823ba7f..d88ebd778 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -902,7 +902,7 @@ $(function() { return; } - if (payload.type !== "gcode") { + if (payload.type !== "printables") { return; }