mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 11:33:01 +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:
parent
312b38d253
commit
da2889f3ab
@ -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], "...");
|
||||
|
Loading…
Reference in New Issue
Block a user