mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Disable machine detection code for the moment as it needs to be ported
This commit is contained in:
parent
1947d773a3
commit
f60dc01e66
1 changed files with 10 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue