mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 08:35:21 +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);
|
const auto iconName = GetTrayIconName(counter, muted);
|
||||||
|
|
||||||
if (cDisableTrayCounter()
|
if (cDisableTrayCounter()
|
||||||
|
&& !QFileInfo::exists(cWorkingDir() + "tdata/icon.png")
|
||||||
|
&& cCustomAppIcon() == 0
|
||||||
&& !iconName.isEmpty()) {
|
&& !iconName.isEmpty()) {
|
||||||
const auto result = QIcon::fromTheme(iconName);
|
const auto result = QIcon::fromTheme(iconName);
|
||||||
UpdateIconRegenerationNeeded(result, counter, muted, iconThemeName);
|
UpdateIconRegenerationNeeded(result, counter, muted, iconThemeName);
|
||||||
|
Reference in New Issue
Block a user