mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-23 07:53:16 +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.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…
x
Reference in New Issue
Block a user