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:
parent
80d476d9d7
commit
3a40e95dcf
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue