From 365783204afcd7a882acce8c91994f7f0c49ba17 Mon Sep 17 00:00:00 2001 From: williamwoldum Date: Wed, 18 Jan 2023 00:47:51 +0100 Subject: [PATCH] realized that 'pausing' and 'resuming' are also states while printing --- src/widgets/octoPrint/component.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/octoPrint/component.jsx b/src/widgets/octoPrint/component.jsx index 9ba9d5fe..d8f1f242 100644 --- a/src/widgets/octoPrint/component.jsx +++ b/src/widgets/octoPrint/component.jsx @@ -32,7 +32,9 @@ export default function Component({ service }) { ); } - if (state === "Printing" || state === "Paused") { + const printingStateFalgs = ["Printing", "Paused", "Pausing", "Resuming"]; + + if (printingStateFalgs.includes(state)) { const { completion } = jobStats.progress; if (!jobStats || !completion) {