mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
When tool icon can not be found in theme, try to find it in the plugin folder
CURA-4345
This commit is contained in:
parent
4d99fb067f
commit
78987ba666
1 changed files with 9 additions and 1 deletions
|
|
@ -34,7 +34,15 @@ Item
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
text: model.name
|
text: model.name
|
||||||
iconSource: UM.Theme.getIcon(model.icon);
|
iconSource:
|
||||||
|
{
|
||||||
|
var result = UM.Theme.getIcon(model.icon)
|
||||||
|
if(result == "")
|
||||||
|
{
|
||||||
|
return model.location + "/" + model.icon
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
checkable: true;
|
checkable: true;
|
||||||
checked: model.active;
|
checked: model.active;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue