mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 17:19:04 +08:00
Use the new read/write local file methods to load and save meshes in printer
This commit is contained in:
parent
aa1889754e
commit
c440c4bbdb
@ -179,7 +179,7 @@ UM.MainWindow {
|
||||
width: UM.Theme.panelWidth;
|
||||
height: 40;
|
||||
|
||||
onSaveRequested: saveAction.trigger();
|
||||
onSaveRequested: actions.save.trigger();
|
||||
}
|
||||
|
||||
UM.MessageStack {
|
||||
@ -238,7 +238,7 @@ UM.MainWindow {
|
||||
|
||||
onAccepted:
|
||||
{
|
||||
UM.Controller.addMesh(fileUrl)
|
||||
UM.MeshFileHandler.readLocalFile(fileUrl)
|
||||
files.setDirectory(fileUrl)
|
||||
}
|
||||
}
|
||||
@ -255,7 +255,7 @@ UM.MainWindow {
|
||||
|
||||
onAccepted:
|
||||
{
|
||||
Printer.saveGCode(fileUrl);
|
||||
UM.MeshFileHandler.writeLocalFile(fileUrl);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user