mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:45:57 +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
|
||||
//selectMultiple: true
|
||||
|
||||
nameFilters: UM.MeshFileHandler.supportedReadFileTypes;
|
||||
|
||||
onAccepted:
|
||||
{
|
||||
UM.Controller.addMesh(fileUrl)
|
||||
@ -323,6 +325,8 @@ UM.MainWindow {
|
||||
|
||||
modality: UM.Application.platform == "linux" ? Qt.NonModal : Qt.Modal;
|
||||
|
||||
nameFilters: UM.MeshFileHandler.supportedWriteFileTypes
|
||||
|
||||
onAccepted:
|
||||
{
|
||||
Printer.saveGCode(fileUrl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user