mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06: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
|
@ -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