Fix custom icon with XEmbed tray (#51)

This commit is contained in:
ilya-fedin 2020-05-24 20:21:52 +04:00 committed by GitHub
parent 81d12c0e25
commit 3189a8ebfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,6 +154,8 @@ QIcon TrayIconGen(int counter, bool muted) {
const auto iconName = GetTrayIconName(counter, muted);
if (cDisableTrayCounter()
&& !QFileInfo::exists(cWorkingDir() + "tdata/icon.png")
&& cCustomAppIcon() == 0
&& !iconName.isEmpty()) {
const auto result = QIcon::fromTheme(iconName);
UpdateIconRegenerationNeeded(result, counter, muted, iconThemeName);