fix: revert room name/width/height on edit discard

This commit is contained in:
2026-05-19 20:06:35 +02:00
parent 2355c8694e
commit 48264fb122
3 changed files with 214 additions and 120 deletions
+14
View File
@@ -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;
}
}