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.", "description": "Provides support for reading 3MF files.",
"api": 4, "api": 4,
"i18n-catalog": "cura" "i18n-catalog": "cura"
} }

View file

@ -1,8 +1,8 @@
{ {
"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.",
"api": 4, "api": 4,
"i18n-catalog": "cura" "i18n-catalog": "cura"
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,8 +1,8 @@
{ {
"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

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -5,4 +5,4 @@
"description": "Provides capabilities to read and write XML-based material profiles.", "description": "Provides capabilities to read and write XML-based material profiles.",
"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);