mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 23:53:56 -06:00
Update documentation and typing
CURA-6824
This commit is contained in:
parent
2df0d96923
commit
55fe4ee986
1 changed files with 3 additions and 4 deletions
|
@ -1602,9 +1602,9 @@ class CuraApplication(QtApplication):
|
||||||
|
|
||||||
@pyqtSlot(QUrl, str)
|
@pyqtSlot(QUrl, str)
|
||||||
## Open a local file
|
## Open a local file
|
||||||
# \param force_project_mode \type{str} Either "open_as_model" or "open_as_project". This parameter is only
|
# \param project_mode How to handle project files. Either None(default): Follow user preference, "open_as_model" or
|
||||||
# considered if the file is a project file.
|
# "open_as_project". This parameter is only considered if the file is a project file.
|
||||||
def readLocalFile(self, file, force_project_mode = None):
|
def readLocalFile(self, file: QUrl, project_mode: Optional[str] = None):
|
||||||
if not file.isValid():
|
if not file.isValid():
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -1616,7 +1616,6 @@ class CuraApplication(QtApplication):
|
||||||
break
|
break
|
||||||
|
|
||||||
is_project_file = self.checkIsValidProjectFile(file)
|
is_project_file = self.checkIsValidProjectFile(file)
|
||||||
project_mode = force_project_mode
|
|
||||||
|
|
||||||
if project_mode is None:
|
if project_mode is None:
|
||||||
project_mode = self.getPreferences().getValue("cura/choice_on_open_project")
|
project_mode = self.getPreferences().getValue("cura/choice_on_open_project")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue