mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Be a bit more gracefull when adding a machine failed
This seems to happen for people that manually add machines to cura but mess something up when copying the files. CURA-3X
This commit is contained in:
parent
27c6cb4c1e
commit
670a106957
3 changed files with 13 additions and 7 deletions
|
|
@ -151,9 +151,10 @@ Item
|
|||
// Create a local printer
|
||||
const localPrinterItem = addLocalPrinterDropDown.contentItem.currentItem
|
||||
const printerName = addLocalPrinterDropDown.contentItem.printerName
|
||||
Cura.MachineManager.addMachine(localPrinterItem.id, printerName)
|
||||
|
||||
base.showNextPage()
|
||||
if(Cura.MachineManager.addMachine(localPrinterItem.id, printerName))
|
||||
{
|
||||
base.showNextPage()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue