From c21537cd4b1ecdbc259346f3eb79ce953db0c797 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Thu, 9 Feb 2017 20:13:46 +0100 Subject: [PATCH] No need to call setup_monitor three times in monitor_apply_options() --- panel-plugin/netload.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c index 8b01780..116d74f 100644 --- a/panel-plugin/netload.c +++ b/panel-plugin/netload.c @@ -784,7 +784,6 @@ static void monitor_apply_options(t_global_monitor *global) global->monitor->options.label_text = g_strdup(gtk_entry_get_text(GTK_ENTRY(global->monitor->opt_entry))); - setup_monitor(global, FALSE); if (global->monitor->options.network_device) { @@ -792,7 +791,6 @@ static void monitor_apply_options(t_global_monitor *global) } global->monitor->options.network_device = g_strdup(gtk_entry_get_text(GTK_ENTRY(global->monitor->net_entry))); - setup_monitor(global, FALSE); for( i = 0; i < SUM; i++ ) {