Skip to content

Commit e599269

Browse files
author
Matthieu Hog
committed
switched ui to platform.folderdialog
1 parent ac0bd4a commit e599269

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

meshroom/ui/qml/main.qml

+3-5
Original file line numberDiff line numberDiff line change
@@ -509,21 +509,19 @@ ApplicationWindow {
509509
}
510510

511511
// plugin installation from path or url
512-
FileDialog {
512+
Platform.FolderDialog {
513513
id: intallPluginDialog
514+
options: Platform.FolderDialog.DontUseNativeDialog
514515
title: "Install Plugin"
515-
selectExisting: false
516-
selectFolder: true
517516
onAccepted: {
518-
if (_reconstruction.installPlugin(intallPluginDialog.fileUrl)) {
517+
if (_reconstruction.installPlugin(currentFolder.toString())) {
519518
pluginInstalledDialog.open()
520519
} else {
521520
pluginNotInstalledDialog.open()
522521
}
523522
}
524523
}
525524

526-
527525
// Check if document has been saved
528526
function ensureSaved(callback)
529527
{

0 commit comments

Comments
 (0)