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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user