2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

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

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);