Compare local backgrounds only by type.
This commit is contained in:
parent
e1d1e38606
commit
1d6e7afcdf
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user