Disable SNI tray icon name setting in snap

Otherwise there are a dummy icon when tray counter is disabled
This commit is contained in:
Ilya Fedin 2020-03-15 06:55:32 +04:00 committed by John Preston
parent 9f0d6e9fab
commit da926d7f10
1 changed files with 1 additions and 1 deletions

View File

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