mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix code style
CURA-3712
This commit is contained in:
parent
cfe1dd4fb6
commit
73f598ff9f
27 changed files with 36 additions and 37 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "3MF Writer",
|
||||
"name": "3MF Writer",
|
||||
"author": "Ultimaker",
|
||||
"version": "1.0.0",
|
||||
"description": "Provides support for writing 3MF files.",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"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"
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue