mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:59:11 +08:00
Merge remote-tracking branch 'origin/qt6_beyond_the_splash' into qt6_beyond_the_splash
This commit is contained in:
commit
f57c30fb42
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user