summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-05-09 11:07:11 +0200
committerPatrick Griffis <tingping@tingping.se>2016-06-29 15:42:11 -0400
commit6a0e131b885535798ce6c371af1b676a02f32819 (patch)
tree615981d1fa0e34a44f764ae5cbd79101f316c3ad /src
parent215a164e57c7eb19beca503be2da1f50660ffb82 (diff)
menu: Ensure that toggling lag-o-meter changes timer state
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/menu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-gtk/menu.c b/src/fe-gtk/menu.c
index 046e6afe..7bfeee03 100644
--- a/src/fe-gtk/menu.c
+++ b/src/fe-gtk/menu.c
@@ -1646,6 +1646,7 @@ menu_metres_off (GtkWidget *item, gpointer none)
 	{
 		prefs.hex_gui_lagometer = 0;
 		prefs.hex_gui_throttlemeter = 0;
+		hexchat_reinit_timers ();
 		menu_setting_foreach (menu_apply_metres_cb, -1, 0);
 	}
 }
@@ -1657,6 +1658,7 @@ menu_metres_text (GtkWidget *item, gpointer none)
 	{
 		prefs.hex_gui_lagometer = 2;
 		prefs.hex_gui_throttlemeter = 2;
+		hexchat_reinit_timers ();
 		menu_setting_foreach (menu_apply_metres_cb, -1, 0);
 	}
 }
@@ -1668,6 +1670,7 @@ menu_metres_graph (GtkWidget *item, gpointer none)
 	{
 		prefs.hex_gui_lagometer = 1;
 		prefs.hex_gui_throttlemeter = 1;
+		hexchat_reinit_timers ();
 		menu_setting_foreach (menu_apply_metres_cb, -1, 0);
 	}
 }
@@ -1679,6 +1682,7 @@ menu_metres_both (GtkWidget *item, gpointer none)
 	{
 		prefs.hex_gui_lagometer = 3;
 		prefs.hex_gui_throttlemeter = 3;
+		hexchat_reinit_timers ();
 		menu_setting_foreach (menu_apply_metres_cb, -1, 0);
 	}
 }