From 253a38c32d3f3cf00744a979147eedc27f144a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 26 Feb 2019 15:31:22 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20gcode=20=3D>=20printables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/events.py | 2 +- src/octoprint/static/js/app/viewmodels/files.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }