public static bool SetupRequired(PrinterConfig printer, bool requiresLoadedFilament) { return(printer == null || LevelingValidation.NeedsToBeRun(printer) || // PrintLevelingWizard ZCalibrationWizard.NeedsToBeRun(printer) || (requiresLoadedFilament && LoadFilamentWizard.NeedsToBeRun0(printer)) || (requiresLoadedFilament && LoadFilamentWizard.NeedsToBeRun1(printer)) || XyCalibrationWizard.NeedsToBeRun(printer)); }
public static bool SetupRequired(PrinterConfig printer, bool requiresLoadedFilament) { // TODO: Verify invoked with low frequency var printerShim = ApplicationController.Instance.Shim(printer); return(LevelingValidation.NeedsToBeRun(printerShim) || // PrintLevelingWizard ZCalibrationWizard.NeedsToBeRun(printer) || (requiresLoadedFilament && LoadFilamentWizard.NeedsToBeRun0(printer)) || (requiresLoadedFilament && LoadFilamentWizard.NeedsToBeRun1(printer)) || XyCalibrationWizard.NeedsToBeRun(printer)); }
public static bool SetupRequired(PrinterConfig printer) { return(LevelingValidation.NeedsToBeRun(printer) || // PrintLevelingWizard ProbeCalibrationWizard.NeedsToBeRun(printer) || FilamentSetupWizard.SetupRequired(printer)); }