mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
CURA-4525 reset the print information for build plates that are marked for slicing
This commit is contained in:
parent
0fdb470ec7
commit
6262003069
2 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,7 @@ from UM.Preferences import Preferences
|
|||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||
|
||||
from cura.Settings.ExtruderManager import ExtruderManager
|
||||
from typing import Dict
|
||||
|
||||
import math
|
||||
import os.path
|
||||
|
@ -177,7 +178,7 @@ class PrintInformation(QObject):
|
|||
self._material_amounts = material_amounts
|
||||
self._calculateInformation(build_plate_number)
|
||||
|
||||
def _updateTotalPrintTimePerFeature(self, build_plate_number, print_time):
|
||||
def _updateTotalPrintTimePerFeature(self, build_plate_number, print_time: Dict[str, int]):
|
||||
total_estimated_time = 0
|
||||
|
||||
if build_plate_number not in self._print_time_message_values:
|
||||
|
|
|
@ -444,6 +444,7 @@ class CuraEngineBackend(QObject, Backend):
|
|||
return
|
||||
|
||||
build_plate_changed.add(source_build_plate_number)
|
||||
self.printDurationMessage.emit(source_build_plate_number, {}, [])
|
||||
|
||||
build_plate_changed.discard(None)
|
||||
build_plate_changed.discard(-1) # object not on build plate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue