mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user