Move alerts onto events rather than checking every loop.

This commit is contained in:
nicm
2015-08-29 08:30:54 +00:00
parent 5267ce8ff4
commit b5aaefc727
8 changed files with 150 additions and 73 deletions

View File

@ -186,6 +186,8 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq)
if (strcmp(oe->name, "status") == 0 ||
strcmp(oe->name, "status-interval") == 0)
status_timer_start_all();
if (strcmp(oe->name, "monitor-silence") == 0)
alerts_reset_all();
/* Update sizes and redraw. May not need it but meh. */
recalculate_sizes();