Remove hardcoded references to Ultimaker machines in QML

We shouldn't hardocode machines in QML in any case. It also created issues
for other monitor / connection flows.
This commit is contained in:
Jaime van Kessel 2019-05-03 14:10:21 +02:00
parent 2e90078ec7
commit e363f1af94
5 changed files with 22 additions and 30 deletions

View file

@ -76,6 +76,10 @@ class GlobalStack(CuraContainerStack):
def maxExtruderCount(self):
return len(self.getMetaDataEntry("machine_extruder_trains"))
@pyqtProperty(bool, notify=configuredConnectionTypesChanged)
def supportsNetworkConnection(self):
return self.getMetaDataEntry("supports_network_connection", False)
@classmethod
def getLoadingPriority(cls) -> int:
return 2