mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fixed connecting for clean machine
CL-541
This commit is contained in:
parent
99de75a3fd
commit
dcf02137ad
1 changed files with 1 additions and 7 deletions
|
|
@ -29,13 +29,7 @@ Cura.MachineAction
|
||||||
|
|
||||||
function connectToPrinter()
|
function connectToPrinter()
|
||||||
{
|
{
|
||||||
if(base.selectedDevice)
|
if(base.selectedDevice && base.completeProperties)
|
||||||
{
|
|
||||||
var deviceKey = base.selectedDevice.key
|
|
||||||
manager.setKey(deviceKey);
|
|
||||||
completed();
|
|
||||||
}
|
|
||||||
if(base.selectedPrinter && base.completeProperties)
|
|
||||||
{
|
{
|
||||||
var printerKey = base.selectedDevice.key
|
var printerKey = base.selectedDevice.key
|
||||||
if(manager.getStoredKey() != printerKey)
|
if(manager.getStoredKey() != printerKey)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue