diff --git a/tab_timeline_ng.py b/tab_timeline_ng.py index e39a607..5e2802d 100644 --- a/tab_timeline_ng.py +++ b/tab_timeline_ng.py @@ -467,6 +467,11 @@ def render_timeline_tab(state: AppState): graph_timer = ui.timer(0.5, _poll_graph_click) + def _cleanup_timer(): + if graph_timer is not None: + graph_timer.active = False + ui.context.client.on_disconnect(_cleanup_timer) + _graphviz_svg_cache: dict[str, str] = {} _GRAPHVIZ_CACHE_MAX = 20