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

@ -1,5 +1,5 @@
{ {
"name": "3MF Writer", "name": "3MF Writer",
"author": "Ultimaker", "author": "Ultimaker",
"version": "1.0.0", "version": "1.0.0",
"description": "Provides support for writing 3MF files.", "description": "Provides support for writing 3MF files.",

View File

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

View File

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