- added PDF file as type in the Recent File list and capability to load it from there

- PDF's can be drag & dropped on the GUI to be loaded
This commit is contained in:
Marius Stanciu
2019-04-22 19:18:23 +03:00
parent 7442af1b06
commit 8f1a0c1fdc
4 changed files with 11 additions and 2 deletions

View File

@@ -3015,6 +3015,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
self.app.worker_task.emit({'fcn': self.app.import_dxf,
'params': [self.filename, object_type, None]})
if extension in self.app.pdf_list:
self.app.worker_task.emit({'fcn': self.app.pdf_tool.open_pdf,
'params': [self.filename]})
if extension in self.app.prj_list:
# self.app.open_project() is not Thread Safe
self.app.open_project(self.filename)