Added chat name to titles of single peer windows.

This commit is contained in:
23rd 2022-12-05 02:49:34 +03:00
parent e26dd4e418
commit 6cb0834d19
2 changed files with 7 additions and 2 deletions

View File

@ -798,7 +798,12 @@ void MainWindow::updateUnreadCounter() {
}
const auto counter = Core::App().unreadBadge();
setTitle((counter > 0) ? u"Telegram (%1)"_q.arg(counter) : u"Telegram"_q);
const auto additionalName = singlePeer()
? u" %1 %2"_q.arg(QChar(8212), singlePeer()->name())
: QString();
setTitle(((counter > 0)
? u"Telegram (%1)"_q.arg(counter)
: u"Telegram"_q) + additionalName);
Core::App().tray().updateIconCounters();
unreadCounterChangedHook();

@ -1 +1 @@
Subproject commit 113b289f7fb689a9996622eafb20e6f0715f0ec5
Subproject commit 22ceaae4ed958d9711965fbe4c1385a7d8c60212