mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
CURA-4870 Add callback function to apply remote configuration
This commit is contained in:
parent
d02d845d1b
commit
731a1092c5
2 changed files with 6 additions and 1 deletions
|
@ -196,6 +196,11 @@ class MachineManager(QObject):
|
|||
# print("%%%%%%%%", configuration == self._current_printer_configuration)
|
||||
return self._current_printer_configuration == configuration
|
||||
|
||||
@pyqtSlot(QObject)
|
||||
def applyRemoteConfiguration(self, configuration: ConfigurationModel):
|
||||
print("Applying remote configuration", configuration)
|
||||
|
||||
|
||||
@property
|
||||
def newVariant(self):
|
||||
return self._new_variant_container
|
||||
|
|
|
@ -66,7 +66,7 @@ Column
|
|||
configuration: modelData
|
||||
onActivateConfiguration:
|
||||
{
|
||||
print("SELECCIONANDO CONFIGURACION", JSON.stringify(configuration))
|
||||
Cura.MachineManager.applyRemoteConfiguration(configuration)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue