Compare local backgrounds only by type.

This commit is contained in:
levlam 2024-03-20 00:01:10 +03:00
parent e1d1e38606
commit 1d6e7afcdf

View File

@ -39,7 +39,8 @@ class BackgroundInfo {
}
bool operator==(const BackgroundInfo &other) const {
return background_id_ == other.background_id_ && background_type_ == other.background_type_;
return background_type_ == other.background_type_ &&
(background_id_ == other.background_id_ || (background_id_.is_local() && other.background_id_.is_local()));
}
bool operator!=(const BackgroundInfo &other) const {