Commit 540f37be authored by Richard Hughes's avatar Richard Hughes
Browse files

color: Only show the calibrate button when the device is selected

parent 45d4944b
...@@ -1135,7 +1135,7 @@ gcm_prefs_devices_treeview_clicked_cb (GtkTreeSelection *selection, ...@@ -1135,7 +1135,7 @@ gcm_prefs_devices_treeview_clicked_cb (GtkTreeSelection *selection,
gtk_widget_set_visible (widget, FALSE); gtk_widget_set_visible (widget, FALSE);
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
"toolbutton_device_calibrate")); "toolbutton_device_calibrate"));
gtk_widget_set_visible (widget, device != NULL); gtk_widget_set_visible (widget, profile == NULL);
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
"toolbutton_profile_add")); "toolbutton_profile_add"));
gtk_widget_set_visible (widget, device != NULL); gtk_widget_set_visible (widget, device != NULL);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment