mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 05:45:54 +08:00
Merge branch '4.10'
This commit is contained in:
commit
8af12de955
@ -117,7 +117,9 @@ class QualitySettingsModel(ListModel):
|
|||||||
if self._selected_position == self.GLOBAL_STACK_POSITION and global_container:
|
if self._selected_position == self.GLOBAL_STACK_POSITION and global_container:
|
||||||
quality_changes_metadata = global_container.getMetaData()
|
quality_changes_metadata = global_container.getMetaData()
|
||||||
else:
|
else:
|
||||||
quality_changes_metadata = extruders_container.get(str(self._selected_position))
|
extruder = extruders_container.get(self._selected_position)
|
||||||
|
if extruder:
|
||||||
|
quality_changes_metadata = extruder.getMetaData()
|
||||||
if quality_changes_metadata is not None: # It can be None if number of extruders are changed during runtime.
|
if quality_changes_metadata is not None: # It can be None if number of extruders are changed during runtime.
|
||||||
container = container_registry.findContainers(id = quality_changes_metadata["id"])
|
container = container_registry.findContainers(id = quality_changes_metadata["id"])
|
||||||
if container:
|
if container:
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (c) 2018 Ultimaker B.V.
|
// Copyright (c) 2021 Ultimaker B.V.
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.10
|
import QtQuick 2.10
|
||||||
import QtQuick.Controls 1.4
|
import QtQuick.Controls 1.4
|
||||||
|
import QtQuick.Controls 2.0 as Controls2
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
import QtQuick.Window 2.2
|
import QtQuick.Window 2.2
|
||||||
|
|
||||||
@ -281,7 +282,7 @@ UM.Dialog
|
|||||||
text: catalog.i18nc("@action:label", "Don't show project summary on save again")
|
text: catalog.i18nc("@action:label", "Don't show project summary on save again")
|
||||||
checked: dontShowAgain
|
checked: dontShowAgain
|
||||||
}
|
}
|
||||||
Button
|
Controls2.Button
|
||||||
{
|
{
|
||||||
id: cancel_button
|
id: cancel_button
|
||||||
anchors
|
anchors
|
||||||
@ -293,7 +294,7 @@ UM.Dialog
|
|||||||
enabled: true
|
enabled: true
|
||||||
onClicked: close()
|
onClicked: close()
|
||||||
}
|
}
|
||||||
Button
|
Controls2.Button
|
||||||
{
|
{
|
||||||
id: ok_button
|
id: ok_button
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
Loading…
x
Reference in New Issue
Block a user