mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add a platform property to ApplicationProxy and use it to set file dialog modality
This commit is contained in:
parent
b94763875f
commit
2af1e31ae9
1 changed files with 2 additions and 2 deletions
|
|
@ -304,7 +304,7 @@ UM.MainWindow {
|
|||
|
||||
//: File open dialog title
|
||||
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
|
||||
//selectMultiple: true
|
||||
|
||||
|
|
@ -321,7 +321,7 @@ UM.MainWindow {
|
|||
title: qsTr("Save File");
|
||||
selectExisting: false;
|
||||
|
||||
modality: Qt.NonModal
|
||||
modality: UM.Application.platform == "linux" ? Qt.NonModal : Qt.Modal;
|
||||
|
||||
onAccepted:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue