mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-23 09:23:15 +08:00
Disable machine detection code for the moment as it needs to be ported
This commit is contained in:
parent
1947d773a3
commit
f60dc01e66
@ -162,17 +162,17 @@ class CuraApplication(QtApplication):
|
|||||||
self.setMainQml(Resources.getPath(self.ResourceTypes.QmlFiles, "Cura.qml"))
|
self.setMainQml(Resources.getPath(self.ResourceTypes.QmlFiles, "Cura.qml"))
|
||||||
self.initializeEngine()
|
self.initializeEngine()
|
||||||
|
|
||||||
if self.getMachines():
|
#if self.getMachines():
|
||||||
active_machine_pref = Preferences.getInstance().getValue("cura/active_machine")
|
#active_machine_pref = Preferences.getInstance().getValue("cura/active_machine")
|
||||||
if active_machine_pref:
|
#if active_machine_pref:
|
||||||
for machine in self.getMachines():
|
#for machine in self.getMachines():
|
||||||
if machine.getName() == active_machine_pref:
|
#if machine.getName() == active_machine_pref:
|
||||||
self.setActiveMachine(machine)
|
#self.setActiveMachine(machine)
|
||||||
|
|
||||||
if not self.getActiveMachine():
|
#if not self.getActiveMachine():
|
||||||
self.setActiveMachine(self.getMachines()[0])
|
#self.setActiveMachine(self.getMachines()[0])
|
||||||
else:
|
#else:
|
||||||
self.requestAddPrinter.emit()
|
#self.requestAddPrinter.emit()
|
||||||
|
|
||||||
if self._engine.rootObjects:
|
if self._engine.rootObjects:
|
||||||
self.closeSplash()
|
self.closeSplash()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user