mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 22:29:41 +08:00
Fix code style
CURA-3712
This commit is contained in:
parent
cfe1dd4fb6
commit
73f598ff9f
@ -267,23 +267,22 @@ UM.MainWindow
|
|||||||
{
|
{
|
||||||
// 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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user