1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 12:06:45 +02:00

Remove some unnecessary calls to flag_interface_refresh()

This commit is contained in:
jfreegman
2021-11-21 20:16:02 -05:00
parent 3fddc410b3
commit 50a074ed22
3 changed files with 5 additions and 8 deletions

View File

@ -448,8 +448,6 @@ int line_info_add(ToxWindow *self, bool show_timestamp, const char *name1, const
hst->queue[hst->queue_size++] = new_line;
flag_interface_refresh();
return new_line->id;
}
@ -475,8 +473,6 @@ static void line_info_check_queue(ToxWindow *self)
if (!self->scroll_pause) {
line_info_reset_start(self, hst);
}
flag_interface_refresh();
}
void line_info_print(ToxWindow *self)
@ -703,6 +699,8 @@ void line_info_print(ToxWindow *self)
line = line->next;
}
flag_interface_refresh();
/* keep calling until queue is empty */
if (hst->queue_size > 0) {
line_info_print(self);