From 6f02720d38c7eb305c68434c36430762e8ab1a44 Mon Sep 17 00:00:00 2001 From: JoveToo Date: Thu, 10 Mar 2022 14:01:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Only=20clear=20gcodeviewer=20sta?= =?UTF-8?q?te=20on=20job=20data=20when=20idle=20(#4449)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js b/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js index e5197cd02..bb6adadfc 100644 --- a/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js +++ b/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js @@ -614,7 +614,7 @@ $(function () { } self.errorCount = 0; } else { - self.clear(); + if (self.status === "idle") self.clear(); if ( data.job.file.path && data.job.file.origin !== "sdcard" &&