window title for call window

Having an empty window title brings different issues, for example:

* invisible on task bar
* invisible in task switcher
* apply properties by match
* ...

So let's use the contact user name for window title.

Fixes #10243
This commit is contained in:
Christian Hesse 2021-07-19 16:18:46 +02:00 committed by John Preston
parent df9e9a9d75
commit 3d1a049405
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ void Panel::initWindow() {
window()->setAttribute(Qt::WA_NoSystemBackground);
window()->setWindowIcon(
QIcon(QPixmap::fromImage(Image::Empty()->original(), Qt::ColorOnly)));
window()->setTitle(u" "_q);
window()->setTitle(_user->name);
window()->setTitleStyle(st::callTitle);
window()->events(