From 655bd0f6dcb994d1164f6b9fbc7eb8e187fa822b Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Wed, 8 Jan 2025 22:33:13 +0100 Subject: [PATCH] Fix window size not restoring when loading state --- src/ui/trackerwindow.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ui/trackerwindow.cpp b/src/ui/trackerwindow.cpp index e933a7fb..5bf806eb 100644 --- a/src/ui/trackerwindow.cpp +++ b/src/ui/trackerwindow.cpp @@ -54,11 +54,7 @@ void TrackerWindow::setTracker(Tracker* tracker, const std::string& layout) _view->setHideUnreachableLocations(_hideUnreachableLocations); _rendered = false; addChild(_view); - - // force-resize after the first render pass to force correct relayout. - // TODO: fix this in TrackerView and Containers - setSize(_size/*{_size.width-1, _size.height-1}*/); - + _view->onMinSizeChanged += {this, [this](void *s) { //Size curSize = Size::FromPosition(_view->getPosition()+_view->getSize()); Size curSize = getSize();