From ee285b1324091261d2642e42ad9294ec9bedf765 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 31 May 2020 16:40:36 +0200 Subject: Check the button according to the displayed graph in statistics --- src/net_monitor | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net_monitor b/src/net_monitor index 3076c64..adb5410 100755 --- a/src/net_monitor +++ b/src/net_monitor @@ -547,6 +547,7 @@ class MonitorGui: button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "top")) vbox.pack_start(button, False, False, 0) button.join_group(first_button) + button.set_active(True) else: label = Gtk.Label(label=_("Network accounting was not enabled on interface %s.\nPlease enable network accounting on the interface in order to view traffic statistics and restart your network connection to start collecting traffic statistics.") % iface) stats_vbox.add(label) -- cgit v1.2.1