Stop rendering map connections twice on load

This commit is contained in:
GriffinR
2025-02-22 19:38:32 -05:00
parent a2a8e27504
commit ae55d64e5b

View File

@@ -11,7 +11,8 @@ ConnectionPixmapItem::ConnectionPixmapItem(MapConnection* connection)
this->setEditable(true);
setFlag(ItemIsFocusable, true);
this->basePixmap = pixmap();
refresh();
updateOrigin();
render(false);
// If the connection changes externally we want to update the pixmap to reflect the change.
connect(connection, &MapConnection::offsetChanged, this, &ConnectionPixmapItem::updatePos);