Remove TDESKTOP_FORCE_PANEL_ICON variable since tdesktop gets current icon theme just fine now
This commit is contained in:
parent
55167ea95b
commit
ede7ad1a4c
1 changed files with 1 additions and 3 deletions
|
@ -58,7 +58,6 @@ namespace Platform {
|
|||
namespace {
|
||||
|
||||
constexpr auto kDisableTrayCounter = "TDESKTOP_DISABLE_TRAY_COUNTER"_cs;
|
||||
constexpr auto kForcePanelIcon = "TDESKTOP_FORCE_PANEL_ICON"_cs;
|
||||
constexpr auto kPanelTrayIconName = "telegram-panel"_cs;
|
||||
constexpr auto kMutePanelTrayIconName = "telegram-mute-panel"_cs;
|
||||
constexpr auto kAttentionPanelTrayIconName = "telegram-attention-panel"_cs;
|
||||
|
@ -149,8 +148,7 @@ QString GetTrayIconName(int counter, bool muted) {
|
|||
const auto iconName = GetIconName();
|
||||
const auto panelIconName = GetPanelIconName(counter, muted);
|
||||
|
||||
if (QIcon::hasThemeIcon(panelIconName)
|
||||
|| qEnvironmentVariableIsSet(kForcePanelIcon.utf8())) {
|
||||
if (QIcon::hasThemeIcon(panelIconName)) {
|
||||
return panelIconName;
|
||||
} else if (QIcon::hasThemeIcon(iconName)) {
|
||||
return iconName;
|
||||
|
|
Loading…
Reference in a new issue