Wintergreen icon theme returns nil if there is no suitable icon
This commit is contained in:
parent
bea78be331
commit
fc41696b5e
@ -436,7 +436,7 @@ func (this *iconTheme) Icon (icon tomo.Icon, size tomo.IconSize) canvas.Texture
|
||||
if texture, ok := source[icon]; ok {
|
||||
return texture
|
||||
}
|
||||
return source[tomo.IconUnknown]
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *iconTheme) MimeIcon (mime data.Mime, size tomo.IconSize) canvas.Texture {
|
||||
|
Loading…
Reference in New Issue
Block a user