mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
CURA-4870 Match the printer type in the dropdown with one of the
available printer types in the group
This commit is contained in:
parent
be8fc9f3f1
commit
3629c3959e
5 changed files with 72 additions and 49 deletions
|
|
@ -57,7 +57,7 @@ Column
|
|||
section.criteria: ViewSection.FullString
|
||||
section.delegate: sectionHeading
|
||||
|
||||
model: outputDevice.uniqueConfigurations
|
||||
model: (ouputDevice != null) ? outputDevice.uniqueConfigurations : []
|
||||
delegate: ConfigurationItem
|
||||
{
|
||||
width: parent.width - UM.Theme.getSize("default_margin").width
|
||||
|
|
|
|||
|
|
@ -18,13 +18,16 @@ Button
|
|||
|
||||
function updateOnSync()
|
||||
{
|
||||
for (var index in outputDevice.uniqueConfigurations)
|
||||
if (outputDevice != undefined)
|
||||
{
|
||||
var configuration = outputDevice.uniqueConfigurations[index]
|
||||
if (Cura.MachineManager.matchesConfiguration(configuration))
|
||||
for (var index in outputDevice.uniqueConfigurations)
|
||||
{
|
||||
base.text = catalog.i18nc("@label:sync indicator", "Matched")
|
||||
return
|
||||
var configuration = outputDevice.uniqueConfigurations[index]
|
||||
if (Cura.MachineManager.matchesConfiguration(configuration))
|
||||
{
|
||||
base.text = catalog.i18nc("@label:sync indicator", "Matched")
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
base.text = catalog.i18nc("@label:sync indicator", "No match")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue