mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Make it possible to use application-specific setting directories
This commit is contained in:
parent
35c6dbb40c
commit
a13be5d9dc
1 changed files with 1 additions and 5 deletions
|
@ -18,9 +18,7 @@ import os.path
|
||||||
|
|
||||||
class PrinterApplication(QtApplication):
|
class PrinterApplication(QtApplication):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__(name = 'Cura')
|
||||||
self.setApplicationName('printer')
|
|
||||||
self._machine_settings.loadSettingsFromFile(Resources.getPath(Resources.SettingsLocation, "ultimaker_original+.json"))
|
|
||||||
self.setRequiredPlugins(['CuraEngineBackend', 'MeshView', 'LayerView', 'STLReader','SelectionTool','CameraTool'])
|
self.setRequiredPlugins(['CuraEngineBackend', 'MeshView', 'LayerView', 'STLReader','SelectionTool','CameraTool'])
|
||||||
self._physics = None
|
self._physics = None
|
||||||
|
|
||||||
|
@ -34,8 +32,6 @@ class PrinterApplication(QtApplication):
|
||||||
self._plugin_registry.loadPlugin('CuraEngineBackend')
|
self._plugin_registry.loadPlugin('CuraEngineBackend')
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.parseArguments()
|
|
||||||
|
|
||||||
controller = self.getController()
|
controller = self.getController()
|
||||||
|
|
||||||
controller.setActiveView("MeshView")
|
controller.setActiveView("MeshView")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue