mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 23:06:13 +08:00
Fixed connecting for clean machine
CL-541
This commit is contained in:
parent
99de75a3fd
commit
dcf02137ad
@ -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…
x
Reference in New Issue
Block a user