mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06: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
|
||||
{
|
||||
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;
|
||||
checked: model.active;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue