network/connection-editor: always load all available VPN plugins
Previously, when a list of VPN plugins was loaded once, it will not load again the next time you try to add a VPN connnection. This causes an issue that if you keep gnome-control-center open and install a new VPN plugin, the new VPN plugin won't show up in the VPN plugin list. Fix that by always load all avilable VPN plugins when showing the "Add VPN" dialog.
This commit is contained in:
parent
6f1567f236
commit
ce93dbb3a0
1 changed files with 0 additions and 5 deletions
|
@ -53,14 +53,9 @@ _sort_vpn_plugins (NMVpnPluginInfo *aa, NMVpnPluginInfo *bb)
|
|||
GSList *
|
||||
vpn_get_plugins (void)
|
||||
{
|
||||
static gboolean plugins_loaded = FALSE;
|
||||
static GSList *plugins = NULL;
|
||||
GSList *p;
|
||||
|
||||
if (G_LIKELY (plugins_loaded))
|
||||
return plugins;
|
||||
plugins_loaded = TRUE;
|
||||
|
||||
p = nm_vpn_plugin_info_list_load ();
|
||||
plugins = NULL;
|
||||
while (p) {
|
||||
|
|
Loading…
Add table
Reference in a new issue