mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 02:06:18 +01:00
Merge branch 'fix-network-available-check' into 'master'
Handle an UNKNOWN NetworkManager connectivity as NONE See merge request GNOME/glib!719
This commit is contained in:
commit
00c129f8eb
@ -167,7 +167,8 @@ sync_properties (GNetworkMonitorNM *nm,
|
||||
nm_connectivity = g_variant_get_uint32 (v);
|
||||
g_variant_unref (v);
|
||||
|
||||
if (nm_connectivity == NM_CONNECTIVITY_NONE)
|
||||
if (nm_connectivity == NM_CONNECTIVITY_UNKNOWN ||
|
||||
nm_connectivity == NM_CONNECTIVITY_NONE)
|
||||
{
|
||||
new_network_available = FALSE;
|
||||
new_network_metered = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user