[network-manager-applet] c-e: always add VPN connections to list even if there are no VPN plugins
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] c-e: always add VPN connections to list even if there are no VPN plugins
- Date: Fri, 29 Apr 2016 15:55:12 +0000 (UTC)
commit 047ed40e28a343221c2ce9f6e863158089bad995
Author: Thomas Haller <thaller redhat com>
Date: Fri Apr 29 17:29:21 2016 +0200
c-e: always add VPN connections to list even if there are no VPN plugins
Currently, when the user has no plugins installed all VPN connections will
be hidden.
But if at least one plugin is present, *all* VPN connections are shown --
regadless their type. For consistency, we should either always show all
VPN connections (even if we are unable to edit them) or we should only
show those for which we have a plugin present.
Do the former, as it is useful for the user to see that he has some
connections.
src/connection-editor/connection-helpers.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/connection-editor/connection-helpers.c b/src/connection-editor/connection-helpers.c
index 4abaf37..9cc789c 100644
--- a/src/connection-editor/connection-helpers.c
+++ b/src/connection-editor/connection-helpers.c
@@ -111,9 +111,7 @@ get_connection_type_list (void)
add_type_data_virtual (array, _("Bridge"), bridge_connection_new, NM_TYPE_SETTING_BRIDGE);
add_type_data_virtual (array, _("VLAN"), vlan_connection_new, NM_TYPE_SETTING_VLAN);
- /* Add "VPN" only if there are plugins */
- if (vpn_get_plugins ())
- add_type_data_virtual (array, _("VPN"), vpn_connection_new, NM_TYPE_SETTING_VPN);
+ add_type_data_virtual (array, _("VPN"), vpn_connection_new, NM_TYPE_SETTING_VPN);
g_array_sort (array, sort_types);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]