2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added common and macOS tray implementations.

This commit is contained in:
23rd
2022-04-21 01:39:01 +03:00
parent f67c3bbf65
commit 56fdc7d39a
7 changed files with 414 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mainwindow.h"
#include "mainwidget.h" // session->content()->windowShown().
#include "facades.h"
#include "tray.h"
#include "styles/style_widgets.h"
#include "styles/style_window.h"
@@ -811,6 +812,7 @@ void MainWindow::updateUnreadCounter() {
const auto counter = Core::App().unreadBadge();
setTitle((counter > 0) ? qsl("Telegram (%1)").arg(counter) : qsl("Telegram"));
Core::App().tray().updateIconCounters();
unreadCounterChangedHook();
}