Merge remote-tracking branch 'origin/qt6_beyond_the_splash' into qt6_beyond_the_splash

This commit is contained in:
j.delarago 2022-04-05 16:10:51 +02:00
commit f57c30fb42

View file

@ -234,7 +234,7 @@ UM.MainWindow
{ {
// The drop area is here to handle files being dropped onto Cura. // The drop area is here to handle files being dropped onto Cura.
anchors.fill: parent anchors.fill: parent
onDropped: onDropped: (drop) =>
{ {
if (drop.urls.length > 0) if (drop.urls.length > 0)
{ {
@ -243,7 +243,7 @@ UM.MainWindow
for (var i = 0; i < drop.urls.length; i++) for (var i = 0; i < drop.urls.length; i++)
{ {
var filename = drop.urls[i]; var filename = drop.urls[i];
if (filename.toLowerCase().endsWith(".curapackage")) if (filename.toString().toLowerCase().endsWith(".curapackage"))
{ {
// Try to install plugin & close. // Try to install plugin & close.
CuraApplication.installPackageViaDragAndDrop(filename); CuraApplication.installPackageViaDragAndDrop(filename);