mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix some coding style
This commit is contained in:
parent
a3dce9f6d1
commit
a20fb7a479
1 changed files with 3 additions and 3 deletions
|
|
@ -266,11 +266,11 @@ UM.MainWindow
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
onDropped:
|
onDropped:
|
||||||
{
|
{
|
||||||
if(drop.urls.length > 0)
|
if (drop.urls.length > 0)
|
||||||
{
|
{
|
||||||
// Import models
|
// Import models
|
||||||
var imported_model = -1;
|
var imported_model = -1;
|
||||||
for(var i in drop.urls)
|
for (var i in drop.urls)
|
||||||
{
|
{
|
||||||
// There is no endsWith in this version of JS...
|
// There is no endsWith in this version of JS...
|
||||||
if ((drop.urls[i].length <= 12) || (drop.urls[i].substring(drop.urls[i].length-12) !== ".curaprofile")) {
|
if ((drop.urls[i].length <= 12) || (drop.urls[i].substring(drop.urls[i].length-12) !== ".curaprofile")) {
|
||||||
|
|
@ -287,7 +287,7 @@ UM.MainWindow
|
||||||
var import_result = Cura.ContainerManager.importProfiles(drop.urls);
|
var import_result = Cura.ContainerManager.importProfiles(drop.urls);
|
||||||
if (import_result.message !== "") {
|
if (import_result.message !== "") {
|
||||||
messageDialog.text = import_result.message
|
messageDialog.text = import_result.message
|
||||||
if(import_result.status == "ok")
|
if (import_result.status == "ok")
|
||||||
{
|
{
|
||||||
messageDialog.icon = StandardIcon.Information
|
messageDialog.icon = StandardIcon.Information
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue