cpu-visualizer: reset colors upon new reader

We want to reset our colors so that we look the same on
subsequent loads, which is what the user would expect.
This commit is contained in:
Christian Hergert
2016-09-28 14:09:53 -07:00
parent baabf7692c
commit 527ad1476c

View File

@ -120,6 +120,8 @@ sp_cpu_visualizer_row_set_reader (SpVisualizerRow *row,
g_assert (SP_IS_CPU_VISUALIZER_ROW (row));
sp_color_cycle_reset (self->colors);
sp_line_visualizer_row_clear (SP_LINE_VISUALIZER_ROW (row));
SP_VISUALIZER_ROW_CLASS (sp_cpu_visualizer_row_parent_class)->set_reader (row, reader);