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
This commit is contained in:
Daniel Viegas 2025-11-28 22:19:03 +01:00
parent b3488a29e8
commit 6d5db75411

View File

@ -187,6 +187,12 @@ class MyTimelineView(NavigationView):
self.scrolledwindow.add(self.drawing_area) self.scrolledwindow.add(self.drawing_area)
return self.scrolledwindow 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): def goto_handle(self, handle):
"""Called when the active family changes.""" """Called when the active family changes."""
if handle == self.active_family_handle: if handle == self.active_family_handle: