2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Unified function to detect icon name on Linux

This commit is contained in:
Ilya Fedin
2020-02-26 15:38:31 +04:00
committed by John Preston
parent 3b300f23e1
commit 7bd0598555
5 changed files with 17 additions and 13 deletions

View File

@@ -117,9 +117,9 @@ QIcon CreateOfficialIcon(Main::Account *account) {
QIcon CreateIcon(Main::Account *account) {
auto result = CreateOfficialIcon(account);
if (Platform::IsLinux()) {
return QIcon::fromTheme("telegram", result);
}
#ifdef Q_OS_LINUX
return QIcon::fromTheme(Platform::GetIconName(), result);
#endif
return result;
}