mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 19:28:07 -06:00
Apply suggestions from code review
CURA-8762 Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
This commit is contained in:
parent
df9d2d85c4
commit
19e43e8b66
2 changed files with 6 additions and 9 deletions
|
@ -40,15 +40,12 @@ Item
|
||||||
{
|
{
|
||||||
return packageData.iconUrl
|
return packageData.iconUrl
|
||||||
}
|
}
|
||||||
if(packageData.packageType == "plugin")
|
switch (packageData.packageType)
|
||||||
{
|
{
|
||||||
return "../images/Plugin.svg"
|
case "plugin": return "../images/Plugin.svg";
|
||||||
|
case "material": return "../images/Spool.svg";
|
||||||
|
default: return "../images/placeholder.svg";
|
||||||
}
|
}
|
||||||
if(packageData.packageType == "material")
|
|
||||||
{
|
|
||||||
return "../images/Spool.svg"
|
|
||||||
}
|
|
||||||
return "../images/placeholder.svg"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue