mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -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.initializeEngine()
|
||||
|
||||
if self.getMachines():
|
||||
active_machine_pref = Preferences.getInstance().getValue("cura/active_machine")
|
||||
if active_machine_pref:
|
||||
for machine in self.getMachines():
|
||||
if machine.getName() == active_machine_pref:
|
||||
self.setActiveMachine(machine)
|
||||
#if self.getMachines():
|
||||
#active_machine_pref = Preferences.getInstance().getValue("cura/active_machine")
|
||||
#if active_machine_pref:
|
||||
#for machine in self.getMachines():
|
||||
#if machine.getName() == active_machine_pref:
|
||||
#self.setActiveMachine(machine)
|
||||
|
||||
if not self.getActiveMachine():
|
||||
self.setActiveMachine(self.getMachines()[0])
|
||||
else:
|
||||
self.requestAddPrinter.emit()
|
||||
#if not self.getActiveMachine():
|
||||
#self.setActiveMachine(self.getMachines()[0])
|
||||
#else:
|
||||
#self.requestAddPrinter.emit()
|
||||
|
||||
if self._engine.rootObjects:
|
||||
self.closeSplash()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue