mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
Make it possible to skip project file check in readLocalFile()
CURA-5203
This commit is contained in:
parent
95c6258d0f
commit
95f4515e93
4 changed files with 6 additions and 6 deletions
|
@ -1557,8 +1557,8 @@ class CuraApplication(QtApplication):
|
|||
|
||||
openProjectFile = pyqtSignal(QUrl, arguments = ["project_file"]) # Emitted when a project file is about to open.
|
||||
|
||||
@pyqtSlot(QUrl)
|
||||
def readLocalFile(self, file):
|
||||
@pyqtSlot(QUrl, bool)
|
||||
def readLocalFile(self, file, skip_project_file_check = False):
|
||||
if not file.isValid():
|
||||
return
|
||||
|
||||
|
@ -1569,7 +1569,7 @@ class CuraApplication(QtApplication):
|
|||
self.deleteAll()
|
||||
break
|
||||
|
||||
if self.checkIsValidProjectFile(file):
|
||||
if not skip_project_file_check and self.checkIsValidProjectFile(file):
|
||||
self.callLater(self.openProjectFile.emit, file)
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue