inspector: Set statistics button sensitivity
After moving the button the header, it is now visible when statistics are not available. Disable it in this case.
This commit is contained in:
parent
592a0d46b4
commit
ae4aaf7354
@ -364,7 +364,10 @@ constructed (GObject *object)
|
|||||||
if (has_instance_counts ())
|
if (has_instance_counts ())
|
||||||
update_type_counts (sl);
|
update_type_counts (sl);
|
||||||
else
|
else
|
||||||
gtk_stack_set_visible_child_name (GTK_STACK (sl->priv->stack), "excuse");
|
{
|
||||||
|
gtk_stack_set_visible_child_name (GTK_STACK (sl->priv->stack), "excuse");
|
||||||
|
gtk_widget_set_sensitive (sl->priv->button, FALSE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user