pref: calculate image hash from raw bytes

This commit is contained in:
Fabian Freund
2025-02-21 11:54:26 +01:00
parent a3c900cf62
commit a9cad61d36
9 changed files with 22 additions and 32 deletions
@@ -50,9 +50,7 @@ class WebExtensionsState extends _$WebExtensionsState {
Future<void> _onIconChange(ExtensionIconEvent event) async {
final ExtensionIconEvent(:extensionId, :bytes) = event;
final image = await tryDecodeImage(
bytes,
).then((image) async => image?.toEquatable());
final image = await tryDecodeImage(bytes);
if (image != null) {
if (_imageCache[extensionId] != image) {