moar stuff.
This commit is contained in:
@@ -53,7 +53,15 @@ func (d *Data) WithPatch(patches ...Patch) Data {
|
||||
}
|
||||
|
||||
if patch.Device.HWMetadata != nil {
|
||||
if pd.Icon == "" {
|
||||
hasIconAlias := false
|
||||
for _, a := range pd.Aliases {
|
||||
if strings.HasPrefix(a, "lucifer:icon") {
|
||||
hasIconAlias = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if !hasIconAlias {
|
||||
pd.Icon = patch.Device.HWMetadata.Icon
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user