[gnome-contacts] AvatarSelector: fix cheese_button sensitive when no available camera



commit 2852f2bbad1500fd82ab7d485d12f391fca5f137
Author: Julian Sparber <julian sparber net>
Date:   Tue Jul 9 12:18:49 2019 +0200

    AvatarSelector: fix cheese_button sensitive when no available camera
    
    The addd signal on the camera_monitor is never fiered
    if there is no available camera when coldplug () is called.
    Therefore the button remains sensitive.

 src/contacts-avatar-selector.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/contacts-avatar-selector.vala b/src/contacts-avatar-selector.vala
index aeaa6e6..9181145 100644
--- a/src/contacts-avatar-selector.vala
+++ b/src/contacts-avatar-selector.vala
@@ -62,6 +62,7 @@ public class Contacts.AvatarSelector : Popover {
 
 #if HAVE_CHEESE
     this.cheese_button.visible = true;
+    this.cheese_button.sensitive = false;
 
     // Look for camera devices.
     this.camera_monitor = new Cheese.CameraDeviceMonitor ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]