[gnome-boxes] preferences, device-list: Set device redir state when initializing



commit ebfa9d0ec93f7ae9fc878f9fd7103d27649b72ba
Author: Felipe Borges <felipeborges gnome org>
Date:   Sat Dec 25 15:14:38 2021 +0100

    preferences, device-list: Set device redir state when initializing
    
    Otherwise the GtkSwitch is going to be off for redirections that
    have been enabled.

 src/preferences/device-list-row.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/preferences/device-list-row.vala b/src/preferences/device-list-row.vala
index ec15581a..a5b18700 100644
--- a/src/preferences/device-list-row.vala
+++ b/src/preferences/device-list-row.vala
@@ -8,6 +8,7 @@
     public DeviceListRow (Boxes.UsbDevice device) {
         title = device.title;
 
+        toggle.set_active (device.active);
         device.bind_property ("active", toggle, "active", BindingFlags.BIDIRECTIONAL);
     }
 }


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