From da57279d9a71a861e7e35b8319647a864152026a Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 28 Aug 2023 13:04:05 +0200 Subject: [PATCH] pstats: Fix GTK strip chart total label and window title not updating ...when navigating around in a session that is not being updated automatically (eg. loaded from file) --- pandatool/src/gtk-stats/gtkStatsStripChart.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandatool/src/gtk-stats/gtkStatsStripChart.cxx b/pandatool/src/gtk-stats/gtkStatsStripChart.cxx index ee3fc547a1..f956cdfa9a 100644 --- a/pandatool/src/gtk-stats/gtkStatsStripChart.cxx +++ b/pandatool/src/gtk-stats/gtkStatsStripChart.cxx @@ -84,7 +84,8 @@ GtkStatsStripChart(GtkStatsMonitor *monitor, int thread_index, clear_region(); - update(); + // Update window title and total label. + new_data(0, 0); } /** @@ -204,6 +205,9 @@ on_click_label(int collector_index) { // Clicking on any other label means to focus on that. set_collector_index(collector_index); } + + // Update window title and total label. + new_data(0, 0); } /**