user-accounts: Show "Take a picture" button only when cam is available

We already had the machanism to show/hide the button based on the number
of camera devices detected. We were just not checking for that at
startup.

Fixes #1087
This commit is contained in:
Felipe Borges 2020-08-05 15:46:33 +02:00 committed by Robert Ancell
parent 5202edaebf
commit 6db6d8a402

View file

@ -387,6 +387,7 @@ setup_cheese_camera_device_monitor (CcAvatarChooser *self)
g_signal_connect_object (G_OBJECT (self->monitor), "added", G_CALLBACK (device_added), self, G_CONNECT_SWAPPED); g_signal_connect_object (G_OBJECT (self->monitor), "added", G_CALLBACK (device_added), self, G_CONNECT_SWAPPED);
g_signal_connect_object (G_OBJECT (self->monitor), "removed", G_CALLBACK (device_removed), self, G_CONNECT_SWAPPED); g_signal_connect_object (G_OBJECT (self->monitor), "removed", G_CALLBACK (device_removed), self, G_CONNECT_SWAPPED);
cheese_camera_device_monitor_coldplug (self->monitor); cheese_camera_device_monitor_coldplug (self->monitor);
update_photo_menu_status (self);
} }
static void static void