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