From ae55d64e5bef0b94882df1405a86847a4c2f8e88 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Sat, 22 Feb 2025 19:38:32 -0500 Subject: [PATCH] Stop rendering map connections twice on load --- src/ui/connectionpixmapitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/connectionpixmapitem.cpp b/src/ui/connectionpixmapitem.cpp index e22b0fab..93bab7c5 100644 --- a/src/ui/connectionpixmapitem.cpp +++ b/src/ui/connectionpixmapitem.cpp @@ -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);