mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Added chat name to titles of single peer windows.
This commit is contained in:
parent
e26dd4e418
commit
6cb0834d19
2 changed files with 7 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue