fix: revert room name/width/height on edit discard
This commit is contained in:
@@ -48,4 +48,18 @@ class Room {
|
||||
'width': width,
|
||||
'height': height,
|
||||
};
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if(other is! Room) {
|
||||
return super == other;
|
||||
}
|
||||
|
||||
return other.height == height
|
||||
&& other.width == width
|
||||
&& other.name == name
|
||||
&& other.id == id
|
||||
&& other.x == x
|
||||
&& other.y == y;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user