mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:15:56 +08:00
T466: Automatic switch to LayerView
This commit is contained in:
parent
5d0c598622
commit
d7120e24d0
@ -555,14 +555,15 @@ class CuraApplication(QtApplication):
|
|||||||
supported_extensions = [".gcode", ".g"]
|
supported_extensions = [".gcode", ".g"]
|
||||||
|
|
||||||
f = file.toLocalFile()
|
f = file.toLocalFile()
|
||||||
|
|
||||||
if len(self.loadingFiles) > 0:
|
|
||||||
extension = os.path.splitext(f)[1]
|
extension = os.path.splitext(f)[1]
|
||||||
|
if len(self.loadingFiles) > 0:
|
||||||
if extension.lower() in supported_extensions:
|
if extension.lower() in supported_extensions:
|
||||||
return
|
return
|
||||||
extension = os.path.splitext(self.loadingFiles[0])[1]
|
extension = os.path.splitext(self.loadingFiles[0])[1]
|
||||||
if extension.lower() in supported_extensions:
|
if extension.lower() in supported_extensions:
|
||||||
return
|
return
|
||||||
|
elif extension.lower() in supported_extensions:
|
||||||
|
self.getController().setActiveView("LayerView")
|
||||||
|
|
||||||
self.loadingFiles.append(f)
|
self.loadingFiles.append(f)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user