Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions octoprint_bambu_connector/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,15 +513,15 @@ def supports_job(self, job: PrintJob) -> bool:
def start_print(
self, pos=None, user=None, tags=None, params: dict = None, *args, **kwargs
):
if not self.active_job.storage == FileDestinations.PRINTER:
if not self.current_job.storage == FileDestinations.PRINTER:
return

path = os.path.join("/", self.active_job.path)
path = os.path.join("/", self.current_job.path)

if params is None:
params = {}

job_params = self.active_job.params
job_params = self.current_job.params
if job_params is None:
job_params = {}

Expand Down Expand Up @@ -885,6 +885,7 @@ def _update_job_from_state(self, printer: bpm.bambuprinter.BambuPrinter):
if self.current_job and (
self.current_job.path == current_path
or self.current_job.storage != FileDestinations.PRINTER
or printer.active_job_info.stage_name not in PRINTING_STATES
):
return

Expand Down