mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-10 20:41:47 +08:00
Fix code style
CURA-3712
This commit is contained in:
parent
cfe1dd4fb6
commit
73f598ff9f
@ -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…
x
Reference in New Issue
Block a user