Shaders: path from root for easier maintenance + cleanup fallback icons
This commit is contained in:
parent
16bd4b41dc
commit
76ef2469e8
6 changed files with 25 additions and 23 deletions
|
|
@ -8,7 +8,7 @@ Text {
|
|||
property string icon: defaultIcon
|
||||
|
||||
text: {
|
||||
if (Bootstrap.icons[icon] === undefined) {
|
||||
if (icon === undefined || Bootstrap.icons[icon] === undefined) {
|
||||
Logger.warn("Icon", `"${icon}"`, "doesn't exist in the bootstrap font")
|
||||
Logger.callStack()
|
||||
return Bootstrap.icons[defaultIcon]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue