mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Clean up gtimer on show typing
This commit is contained in:
parent
bcf0628a0f
commit
44dab33552
@ -91,6 +91,9 @@ title_bar_refresh(void)
|
||||
|
||||
title_bar_draw();
|
||||
|
||||
g_timer_destroy(typing_elapsed);
|
||||
typing_elapsed = NULL;
|
||||
|
||||
dirty = TRUE;
|
||||
}
|
||||
}
|
||||
@ -124,7 +127,10 @@ title_bar_set_status(jabber_presence_t status)
|
||||
void
|
||||
title_bar_set_recipient(char *from)
|
||||
{
|
||||
typing_elapsed = NULL;
|
||||
if (typing_elapsed != NULL) {
|
||||
g_timer_destroy(typing_elapsed);
|
||||
typing_elapsed = NULL;
|
||||
}
|
||||
recipient = from;
|
||||
|
||||
if (current_title != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user