mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 21:59:37 +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.
|
||||
var result = PluginRegistry.installPlugin(drop.urls[0]);
|
||||
pluginInstallDialog.text = result.message
|
||||
pluginInstallDialog.text = result.message;
|
||||
if (result.status == "ok")
|
||||
{
|
||||
pluginInstallDialog.icon = StandardIcon.Information
|
||||
pluginInstallDialog.icon = StandardIcon.Information;
|
||||
}
|
||||
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