mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 21:56:04 +08:00
Merge branch '2.1' of https://github.com/Ultimaker/Cura into 2.1
This commit is contained in:
commit
bec897843d
@ -78,6 +78,8 @@ class CuraApplication(QtApplication):
|
||||
if not hasattr(sys, "frozen"):
|
||||
Resources.addSearchPath(os.path.join(os.path.abspath(os.path.dirname(__file__)), ".."))
|
||||
|
||||
self._open_file_queue = [] #Files to open when plug-ins are loaded.
|
||||
|
||||
super().__init__(name = "cura", version = CuraVersion)
|
||||
|
||||
self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png")))
|
||||
@ -148,6 +150,8 @@ class CuraApplication(QtApplication):
|
||||
if self.getBackend() == None:
|
||||
raise RuntimeError("Could not load the backend plugin!")
|
||||
|
||||
self._plugins_loaded = True
|
||||
|
||||
def addCommandLineOptions(self, parser):
|
||||
super().addCommandLineOptions(parser)
|
||||
parser.add_argument("file", nargs="*", help="Files to load after starting the application.")
|
||||
@ -205,13 +209,18 @@ class CuraApplication(QtApplication):
|
||||
|
||||
for file in self.getCommandLineOption("file", []):
|
||||
self._openFile(file)
|
||||
for file_name in self._open_file_queue: #Open all the files that were queued up while plug-ins were loading.
|
||||
self._openFile(file_name)
|
||||
|
||||
self.exec_()
|
||||
|
||||
# Handle Qt events
|
||||
def event(self, event):
|
||||
if event.type() == QEvent.FileOpen:
|
||||
self._openFile(event.file())
|
||||
if self._plugins_loaded:
|
||||
self._openFile(event.file())
|
||||
else:
|
||||
self._open_file_queue.append(event.file())
|
||||
|
||||
return super().event(event)
|
||||
|
||||
|
@ -1305,7 +1305,7 @@
|
||||
"description": "Experimental feature: Make support areas smaller at the bottom than at the overhang.",
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"visible": false,
|
||||
"visible": true,
|
||||
"enabled": "support_enable"
|
||||
},
|
||||
"support_conical_angle": {
|
||||
|
@ -15,6 +15,27 @@
|
||||
"machine_depth": { "default": 225 },
|
||||
"machine_height": { "default": 200 },
|
||||
"machine_show_variants": { "default": true },
|
||||
"gantry_height": { "default": 50 }
|
||||
"gantry_height": { "default": 50 },
|
||||
"machine_head_with_fans_polygon":
|
||||
{
|
||||
"default": [
|
||||
[
|
||||
-44,
|
||||
14
|
||||
],
|
||||
[
|
||||
-44,
|
||||
-34
|
||||
],
|
||||
[
|
||||
64,
|
||||
14
|
||||
],
|
||||
[
|
||||
64,
|
||||
-34
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user