From e59926951051181d4cb1ec2b47090775cf320c95 Mon Sep 17 00:00:00 2001 From: Matthieu Hog Date: Thu, 1 Aug 2024 14:03:50 +0200 Subject: [PATCH] switched ui to platform.folderdialog --- meshroom/ui/qml/main.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/meshroom/ui/qml/main.qml b/meshroom/ui/qml/main.qml index 08aa0aa08c..4c8dd46b22 100644 --- a/meshroom/ui/qml/main.qml +++ b/meshroom/ui/qml/main.qml @@ -509,13 +509,12 @@ ApplicationWindow { } // plugin installation from path or url - FileDialog { + Platform.FolderDialog { id: intallPluginDialog + options: Platform.FolderDialog.DontUseNativeDialog title: "Install Plugin" - selectExisting: false - selectFolder: true onAccepted: { - if (_reconstruction.installPlugin(intallPluginDialog.fileUrl)) { + if (_reconstruction.installPlugin(currentFolder.toString())) { pluginInstalledDialog.open() } else { pluginNotInstalledDialog.open() @@ -523,7 +522,6 @@ ApplicationWindow { } } - // Check if document has been saved function ensureSaved(callback) {