2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Handle snap icon problem in snapcraft.yaml rather than in code

This commit is contained in:
Ilya Fedin
2020-11-04 09:32:50 +04:00
committed by John Preston
parent 7dffc6e912
commit 55167ea95b
2 changed files with 5 additions and 4 deletions

View File

@@ -593,9 +593,7 @@ void MainWindow::setSNITrayIcon(int counter, bool muted) {
const auto iconName = GetTrayIconName(counter, muted);
if (qEnvironmentVariableIsSet(kDisableTrayCounter.utf8())
&& !iconName.isEmpty()
&& (!InSnap()
|| qEnvironmentVariableIsSet(kForcePanelIcon.utf8()))) {
&& !iconName.isEmpty()) {
if (_sniTrayIcon->iconName() == iconName) {
return;
}