mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 03:04:23 +08:00
CURA-4451 Minor changes
This commit is contained in:
parent
524ace9b04
commit
b9c318d432
@ -75,7 +75,6 @@ class CrashHandler:
|
||||
|
||||
## Creates a modal dialog.
|
||||
def _createDialog(self):
|
||||
self.dialog = QDialog()
|
||||
self.dialog.setMinimumWidth(640)
|
||||
self.dialog.setMinimumHeight(640)
|
||||
self.dialog.setWindowTitle(catalog.i18nc("@title:window", "Crash Report"))
|
||||
|
@ -198,13 +198,6 @@ class QualityManager:
|
||||
else:
|
||||
materials.append(global_container_stack.material)
|
||||
|
||||
# if extruder_stacks:
|
||||
# # Multi-extruder machine detected.
|
||||
# materials = [stack.material for stack in extruder_stacks]
|
||||
# else:
|
||||
# # Machine with one extruder.
|
||||
# materials = [global_container_stack.material]
|
||||
|
||||
quality_types = self.findAllQualityTypesForMachineAndMaterials(global_machine_definition, materials)
|
||||
|
||||
# Map the list of quality_types to InstanceContainers
|
||||
|
@ -166,7 +166,7 @@ class ProfilesModel(InstanceContainersModel):
|
||||
for item in containers:
|
||||
profile = container_registry.findContainers(id = item["id"])
|
||||
|
||||
# when the profile is not supported
|
||||
# When for some reason there is no profile container in the registry
|
||||
if not profile:
|
||||
self._setItemLayerHeight(item, "", "")
|
||||
item["available"] = False
|
||||
@ -175,7 +175,7 @@ class ProfilesModel(InstanceContainersModel):
|
||||
|
||||
profile = profile[0]
|
||||
|
||||
# empty qualities should show in the list (they are "Not Supported" profiles)
|
||||
# When there is a profile but it's an empty quality should. It's shown in the list (they are "Not Supported" profiles)
|
||||
if profile.getId() == "empty_quality":
|
||||
self._setItemLayerHeight(item, "", "")
|
||||
item["available"] = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user