Skip to content

Commit

Permalink
iconCache: Gio.Icon.equal(), not .equals()
Browse files Browse the repository at this point in the history
The comparison function is named `equal()`.
https://docs.gtk.org/gio/vfunc.Icon.equal.html
  • Loading branch information
ferdnyc committed Apr 15, 2024
1 parent 03a7412 commit 0c839d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iconCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class IconCache {
}

const oldIcon = this._cache.get(id);
if (!oldIcon || !oldIcon.equals(icon)) {
if (!oldIcon || !oldIcon.equal(icon)) {
Util.Logger.debug(`IconCache: adding ${id}: ${icon}`);
this._cache.set(id, icon);
} else {
Expand Down

0 comments on commit 0c839d6

Please sign in to comment.