mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06:00
Use class properties
Contributes to CL-1331
This commit is contained in:
parent
c7f6351903
commit
5774813704
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ Cura.MachineAction
|
|||
{
|
||||
var printerKey = base.selectedDevice.key
|
||||
var printerName = base.selectedDevice.name // TODO To change when the groups have a name
|
||||
if (Cura.API.machines.getCurrentMachine()["um_network_key"] != printerKey)
|
||||
if (Cura.API.machines.getCurrentMachine().um_network_key != printerKey) // TODO: change to hostname
|
||||
{
|
||||
// Check if there is another instance with the same key
|
||||
if (!manager.existsKey(printerKey))
|
||||
|
@ -157,7 +157,7 @@ Cura.MachineAction
|
|||
var selectedKey = manager.getLastManualEntryKey()
|
||||
// If there is no last manual entry key, then we select the stored key (if any)
|
||||
if (selectedKey == "")
|
||||
selectedKey = Cura.API.machines.getCurrentMachine()["um_network_key"]
|
||||
selectedKey = Cura.API.machines.getCurrentMachine().um_network_key // TODO: change to host name
|
||||
for(var i = 0; i < model.length; i++) {
|
||||
if(model[i].key == selectedKey)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue