Merge pull request #2680 from alicevision/fix/jsParamInjection

[qml] Fix QML warnings when dropping project files into the Graph Editor
This commit is contained in:
Yann Lanthony 2025-02-25 17:39:18 +01:00 committed by GitHub
commit 5a66087eac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -1281,7 +1281,7 @@ Page {
_reconstruction.forceNodesStatusUpdate();
computeManager.submit(nodes)
}
onFilesDropped: {
onFilesDropped: function(drop, mousePosition) {
var filesByType = _reconstruction.getFilesByTypeFromDrop(drop.urls)
if (filesByType["meshroomScenes"].length == 1) {
ensureSaved(function() {

View file

@ -989,12 +989,12 @@ Item {
id: dropArea
anchors.fill: parent
keys: ["text/uri-list"]
onEntered: {
onEntered: function(drag) {
nbMeshroomScenes = 0
nbDraggedFiles = drag.urls.length
drag.urls.forEach(function(file) {
if (file.endsWith(".mg")) {
if (String(file).endsWith(".mg")) {
nbMeshroomScenes++
}
})