|
@@ -318,10 +318,13 @@ struct WebSiteFaviconView: View {
|
|
|
.frame(width: size, height: size)
|
|
.frame(width: size, height: size)
|
|
|
.task(id: webURL.absoluteString) {
|
|
.task(id: webURL.absoluteString) {
|
|
|
remoteImage = nil
|
|
remoteImage = nil
|
|
|
- let img = await FaviconImageCache.shared.image(for: webURL)
|
|
|
|
|
- await MainActor.run {
|
|
|
|
|
- remoteImage = img
|
|
|
|
|
|
|
+ // If we have a bundled asset for this tile, prefer it and skip network fetches.
|
|
|
|
|
+ if !assetIconName.isEmpty, NSImage(named: assetIconName) != nil {
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ let img = await FaviconImageCache.shared.image(for: webURL)
|
|
|
|
|
+ await MainActor.run { remoteImage = img }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|