mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 15:19:00 +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;
|
width: UM.Theme.panelWidth;
|
||||||
height: 40;
|
height: 40;
|
||||||
|
|
||||||
onSaveRequested: saveAction.trigger();
|
onSaveRequested: actions.save.trigger();
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.MessageStack {
|
UM.MessageStack {
|
||||||
@ -238,7 +238,7 @@ UM.MainWindow {
|
|||||||
|
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
UM.Controller.addMesh(fileUrl)
|
UM.MeshFileHandler.readLocalFile(fileUrl)
|
||||||
files.setDirectory(fileUrl)
|
files.setDirectory(fileUrl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -255,7 +255,7 @@ UM.MainWindow {
|
|||||||
|
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
Printer.saveGCode(fileUrl);
|
UM.MeshFileHandler.writeLocalFile(fileUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user