mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 11:56:05 +08:00
Expose MeshFileHandler to QML and use it to set supported read/write file types
This commit is contained in:
parent
9452b3ef3f
commit
5607cf5afd
@ -308,6 +308,8 @@ UM.MainWindow {
|
|||||||
//TODO: Support multiple file selection, workaround bug in KDE file dialog
|
//TODO: Support multiple file selection, workaround bug in KDE file dialog
|
||||||
//selectMultiple: true
|
//selectMultiple: true
|
||||||
|
|
||||||
|
nameFilters: UM.MeshFileHandler.supportedReadFileTypes;
|
||||||
|
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
UM.Controller.addMesh(fileUrl)
|
UM.Controller.addMesh(fileUrl)
|
||||||
@ -323,6 +325,8 @@ UM.MainWindow {
|
|||||||
|
|
||||||
modality: UM.Application.platform == "linux" ? Qt.NonModal : Qt.Modal;
|
modality: UM.Application.platform == "linux" ? Qt.NonModal : Qt.Modal;
|
||||||
|
|
||||||
|
nameFilters: UM.MeshFileHandler.supportedWriteFileTypes
|
||||||
|
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
Printer.saveGCode(fileUrl);
|
Printer.saveGCode(fileUrl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user