network: vpn hide metered connection
settings
NetworkManager does not support metered connection settings in the context of VPN. This commit hides the setting on VPN details pages. Part-of: <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1996>
This commit is contained in:
parent
72246bceb1
commit
51b82c0719
1 changed files with 3 additions and 1 deletions
|
@ -252,8 +252,10 @@ update_restrict_data (CEPageDetails *self)
|
|||
/* Disable for VPN; NetworkManager does not implement that yet (see
|
||||
* bug https://bugzilla.gnome.org/show_bug.cgi?id=792618) */
|
||||
type = nm_setting_connection_get_connection_type (s_con);
|
||||
if (g_str_equal (type, NM_SETTING_VPN_SETTING_NAME))
|
||||
if (g_str_equal(type, NM_SETTING_VPN_SETTING_NAME)) {
|
||||
gtk_widget_set_visible(GTK_WIDGET (self->restrict_data_check), FALSE);
|
||||
return;
|
||||
}
|
||||
|
||||
metered = nm_setting_connection_get_metered (s_con);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue