system: Bind Remote Desktop gsetting state to widgets

So that the main switch and the page summary are updated when the
backend changes.

With this, the UI reacts to external calls such as
`grdctl rdp enable`.
This commit is contained in:
Felipe Borges 2023-11-30 10:04:06 +01:00
parent 80d476d9d7
commit 3a40e95dcf

View file

@ -591,6 +591,11 @@ cc_remote_desktop_page_setup_remote_desktop_dialog (CcRemoteDesktopPage *self)
rdp_settings = g_settings_new (GNOME_REMOTE_DESKTOP_RDP_SCHEMA_ID);
g_settings_bind (rdp_settings,
"enable",
self->remote_desktop_switch,
"active",
G_SETTINGS_BIND_DEFAULT);
g_settings_bind (rdp_settings,
"view-only",
self->remote_control_switch,