mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-22 12:39:22 +08:00
Add a platform property to ApplicationProxy and use it to set file dialog modality
This commit is contained in:
parent
b94763875f
commit
2af1e31ae9
@ -304,7 +304,7 @@ UM.MainWindow {
|
|||||||
|
|
||||||
//: File open dialog title
|
//: File open dialog title
|
||||||
title: qsTr("Open File")
|
title: qsTr("Open File")
|
||||||
modality: Qt.NonModal
|
modality: UM.Application.platform == "linux" ? Qt.NonModal : Qt.Modal;
|
||||||
//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
|
||||||
|
|
||||||
@ -321,7 +321,7 @@ UM.MainWindow {
|
|||||||
title: qsTr("Save File");
|
title: qsTr("Save File");
|
||||||
selectExisting: false;
|
selectExisting: false;
|
||||||
|
|
||||||
modality: Qt.NonModal
|
modality: UM.Application.platform == "linux" ? Qt.NonModal : Qt.Modal;
|
||||||
|
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user