1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 03:33:25 +01:00

Fix UI regression

The conference number needs to be displayed in the tab name
so that you can invite friends to conferences
This commit is contained in:
jfreegman 2020-11-20 02:10:52 -05:00
parent 312b38d253
commit da2889f3ab
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -584,7 +584,11 @@ void set_window_title(ToxWindow *self, const char *title, int len)
char cpy[TOXIC_MAX_NAME_LENGTH + 1];
snprintf(cpy, sizeof(cpy), "%s", title);
if (self->type == WINDOW_TYPE_CONFERENCE) { /* keep conferencenumber in title for invites */
snprintf(cpy, sizeof(cpy), "%u %s", self->num, title);
} else {
snprintf(cpy, sizeof(cpy), "%s", title);
}
if (len > MAX_WINDOW_NAME_LENGTH) {
strcpy(&cpy[MAX_WINDOW_NAME_LENGTH - 3], "...");