2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 07:56:03 +00:00

Get rid of custom SNI implementation

XDG is inventing new tray specification, so SNI will be outdated soon and it's better to just use QSystemTrayIcon.
I believe all the major drawbacks of QSystemTrayIcon are solved and we can live with minor ones.
Given the planned MainWindow refactoring, it seems it's the best time to do that.
This commit is contained in:
Ilya Fedin
2022-01-21 20:51:43 +04:00
committed by John Preston
parent aed49b9289
commit b65d40a22b
9 changed files with 33 additions and 1139 deletions

View File

@@ -592,9 +592,7 @@ bool AutostartSkip() {
}
bool TrayIconSupported() {
return App::wnd()
? App::wnd()->trayAvailable()
: false;
return QSystemTrayIcon::isSystemTrayAvailable();
}
bool SkipTaskbarSupported() {