Update icon theme on the fly

This commit is contained in:
Ilya Fedin
2020-07-15 22:45:59 +04:00
committed by John Preston
parent df155f6cb5
commit ba50393e86
5 changed files with 114 additions and 19 deletions
@@ -519,7 +519,8 @@ void MainWindow::setSNITrayIcon(int counter, bool muted) {
_sniTrayIcon->setToolTipIconByName(iconName);
} else if (IsIndicatorApplication()) {
if (!IsIconRegenerationNeeded(counter, muted)
&& !_sniTrayIcon->iconName().isEmpty()) {
&& _trayIconFile
&& _sniTrayIcon->iconName() == _trayIconFile->fileName()) {
return;
}
@@ -532,7 +533,8 @@ void MainWindow::setSNITrayIcon(int counter, bool muted) {
}
} else {
if (!IsIconRegenerationNeeded(counter, muted)
&& !_sniTrayIcon->iconPixmap().isEmpty()) {
&& !_sniTrayIcon->iconPixmap().isEmpty()
&& _sniTrayIcon->iconName().isEmpty()) {
return;
}