From c5cd0b2ebc69f35f5a17842d9ceb65c3297dc03b Mon Sep 17 00:00:00 2001 From: John Lewin Date: Sun, 11 Nov 2018 13:16:32 -0800 Subject: [PATCH] Add AnyPrintTaskRunning helper property --- MatterControlLib/ApplicationView/ApplicationController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MatterControlLib/ApplicationView/ApplicationController.cs b/MatterControlLib/ApplicationView/ApplicationController.cs index bc74c5f38..4fbf407b3 100644 --- a/MatterControlLib/ApplicationView/ApplicationController.cs +++ b/MatterControlLib/ApplicationView/ApplicationController.cs @@ -2036,6 +2036,11 @@ namespace MatterHackers.MatterControl public bool PrinterTabSelected { get; set; } = false; + /// + /// Indicates if any ActivePrinter is running a print task, either in paused or printing states + /// + public bool AnyPrintTaskRunning => this.ActivePrinters.Any(p => p.Connection.PrinterIsPrinting || p.Connection.PrinterIsPaused); + public event EventHandler AddPrintersTabRightElement; public void NotifyPrintersTabRightElement(GuiWidget sourceExentionArea)