Added chat name to titles of single peer windows.
This commit is contained in:
parent
e26dd4e418
commit
6cb0834d19
|
@ -798,7 +798,12 @@ void MainWindow::updateUnreadCounter() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto counter = Core::App().unreadBadge();
|
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();
|
Core::App().tray().updateIconCounters();
|
||||||
unreadCounterChangedHook();
|
unreadCounterChangedHook();
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 113b289f7fb689a9996622eafb20e6f0715f0ec5
|
Subproject commit 22ceaae4ed958d9711965fbe4c1385a7d8c60212
|
Loading…
Reference in New Issue