[ui] Fix injections into signal handlers with JS functions

This commit is contained in:
Candice Bentéjac 2025-01-09 19:05:48 +01:00
parent b29bcfe0c5
commit e214868d81
2 changed files with 2 additions and 2 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

@ -987,7 +987,7 @@ Item {
id: dropArea
anchors.fill: parent
keys: ["text/uri-list"]
onEntered: {
onEntered: function(drag) {
nbMeshroomScenes = 0
nbDraggedFiles = drag.urls.length