From abb00f11a4b8cda9e3dc9c34c6cd61fea725a45c Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 4 Jan 2021 03:18:38 +0100 Subject: netspeed: allow to select an interface which is down --- netspeed/src/netspeed.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'netspeed/src') diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c index 2235542f..d1231a63 100644 --- a/netspeed/src/netspeed.c +++ b/netspeed/src/netspeed.c @@ -1563,11 +1563,14 @@ device_settings_changed (GSettings *settings, const gchar *key, NetspeedApplet *netspeed) { - char *davice; + char *device; + DevInfo *info; - davice = g_settings_get_string (settings, key); - set_applet_devinfo (netspeed, davice); - g_free (davice); + device = g_settings_get_string (settings, key); + free_device_info (netspeed->devinfo); + get_device_info (device, &netspeed->devinfo); + netspeed->device_has_changed = TRUE; + g_free (device); } /* The "main" function of the applet -- cgit v1.2.1