visualizers: clear selected row when showing details

The details don't correspond to any selected row, so clear the row when
we switch to the details page.
This commit is contained in:
Christian Hergert
2020-01-23 12:36:04 -08:00
parent bcfaa6caa8
commit 460df56fa5
4 changed files with 14 additions and 1 deletions

View File

@ -327,7 +327,11 @@ change_page_cb (GSimpleAction *action,
if (g_variant_is_of_type (param, G_VARIANT_TYPE_STRING))
{
const gchar *str = g_variant_get_string (param, NULL);
gtk_stack_set_visible_child_name (priv->pages, str);
if (g_str_equal (str, "details"))
sysprof_visualizers_frame_unselect_row (priv->visualizers);
}
}