From 6d5db75411d38f146ce218250b44b64ba349f70d Mon Sep 17 00:00:00 2001 From: Daniel Viegas Date: Fri, 28 Nov 2025 22:19:03 +0100 Subject: [PATCH] Add missing build_tree() abstract method implementation - Implement build_tree() method required by NavigationView - Calls goto_handle() with active family to rebuild display - Fixes TypeError when loading MyTimeline view --- MyTimeline.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MyTimeline.py b/MyTimeline.py index 5e66938..bd32c48 100644 --- a/MyTimeline.py +++ b/MyTimeline.py @@ -187,6 +187,12 @@ class MyTimelineView(NavigationView): self.scrolledwindow.add(self.drawing_area) return self.scrolledwindow + def build_tree(self): + """Rebuilds the current display. Called when the view becomes visible.""" + active_handle = self.get_active() + if active_handle: + self.goto_handle(active_handle) + def goto_handle(self, handle): """Called when the active family changes.""" if handle == self.active_family_handle: