Include label and labelOverride in Searchable equality check

This commit is contained in:
MM20 2022-09-16 16:00:57 +02:00
parent 4c8173360e
commit 7a3d4a48b9
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -52,7 +52,7 @@ abstract class Searchable : Comparable<Searchable> {
}
override fun equals(other: Any?): Boolean {
return if (other is Searchable) key == other.key
return if (other is Searchable) key == other.key && label == other.label && labelOverride == other.labelOverride
else super.equals(other)
}