Fix -Wunused-const-variable warnings under DESKTOP_APP_DISABLE_DBUS_INTEGRATION

OpenBSD builds without dbus integration (for now);  this fixes the warnings.
Those variables have been introduced in multiple commits.
This commit is contained in:
Klemens Nanni 2021-12-24 01:16:12 +01:00 committed by John Preston
parent b61250e101
commit 078a2af385
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ constexpr auto kPanelTrayIconName = "telegram-panel"_cs;
constexpr auto kMutePanelTrayIconName = "telegram-mute-panel"_cs;
constexpr auto kAttentionPanelTrayIconName = "telegram-attention-panel"_cs;
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
constexpr auto kPropertiesInterface = "org.freedesktop.DBus.Properties"_cs;
constexpr auto kTrayIconFilename = "tdesktop-trayicon-XXXXXX.png"_cs;
@ -80,6 +81,7 @@ constexpr auto kAppMenuObjectPath = "/com/canonical/AppMenu/Registrar"_cs;
constexpr auto kAppMenuInterface = kAppMenuService;
constexpr auto kMainMenuObjectPath = "/MenuBar"_cs;
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
bool TrayIconMuted = true;
int32 TrayIconCount = 0;