mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:19:05 +08: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
@ -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…
x
Reference in New Issue
Block a user