Skip to content

Commit

Permalink
switched ui to platform.folderdialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Hog committed Aug 1, 2024
1 parent ac0bd4a commit e599269
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions meshroom/ui/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -509,21 +509,19 @@ 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()
}
}
}


// Check if document has been saved
function ensureSaved(callback)
{
Expand Down

0 comments on commit e599269

Please sign in to comment.