Fix code style

CURA-3712
This commit is contained in:
Lipu Fei 2017-06-22 08:54:01 +02:00
parent cfe1dd4fb6
commit 73f598ff9f
27 changed files with 36 additions and 37 deletions

View File

@ -5,4 +5,4 @@
"description": "Provides support for reading 3MF files.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -1,8 +1,8 @@
{
"name": "3MF Writer",
"name": "3MF Writer",
"author": "Ultimaker",
"version": "1.0.0",
"description": "Provides support for writing 3MF files.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Automatically saves Preferences, Machines and Profiles after changes.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Shows changes since latest checked version.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"api": 4,
"version": "1.0.0",
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides support for importing Cura profiles.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides support for exporting Cura profiles.",
"api": 4,
"i18n-catalog":"cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides support for importing profiles from g-code files.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Allows loading and displaying G-code files.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Writes GCode to a file.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Enables ability to generate printable geometry from 2D image files.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides the Layer view.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides support for importing profiles from legacy Cura versions.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides a way to change machine settings (such as build volume, nozzle size, etc)",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides the Per Model Settings.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -1,8 +1,8 @@
{
"name": "Removable Drive Output Device Plugin",
"author": "Ultimaker B.V.",
"description": "Provides removable drive hotplugging and writing support.",
"description": "Provides removable drive hotplugging and writing support.",
"version": "1.0",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Submits anonymous slice info. Can be disabled through preferences.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"version": "1.0",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"api": 4,
"description": "Accepts G-Code and sends them to a printer. Plugin can also update firmware.",
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides machine actions for Ultimaker machines (such as bed leveling wizard, selecting upgrades, etc)",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Upgrades configurations from Cura 2.1 to Cura 2.2.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Upgrades configurations from Cura 2.2 to Cura 2.4.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Upgrades configurations from Cura 2.5 to Cura 2.6.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides support for reading X3D files.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides the X-Ray view.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -5,4 +5,4 @@
"description": "Provides capabilities to read and write XML-based material profiles.",
"api": 4,
"i18n-catalog": "cura"
}
}

View File

@ -261,29 +261,28 @@ UM.MainWindow
if (drop.urls.length > 0)
{
// As the drop area also supports plugins, first check if it's a plugin that was dropped.
if(drop.urls.length == 1)
if (drop.urls.length == 1)
{
if(PluginRegistry.isPluginFile(drop.urls[0]))
if (PluginRegistry.isPluginFile(drop.urls[0]))
{
// Try to install plugin & close.
var result = PluginRegistry.installPlugin(drop.urls[0]);
pluginInstallDialog.text = result.message
if(result.status == "ok")
pluginInstallDialog.text = result.message;
if (result.status == "ok")
{
pluginInstallDialog.icon = StandardIcon.Information
pluginInstallDialog.icon = StandardIcon.Information;
}
else if(result.status == "duplicate")
else if (result.status == "duplicate")
{
pluginInstallDialog.icon = StandardIcon.Warning
pluginInstallDialog.icon = StandardIcon.Warning;
}
else
{
pluginInstallDialog.icon = StandardIcon.Critical
pluginInstallDialog.icon = StandardIcon.Critical;
}
pluginInstallDialog.open();
return;
}
}
openDialog.handleOpenFileUrls(drop.urls);